1/* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at: 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17cc_library_static { 18 name: "timedtext_fuzz-protos", 19 20 srcs: ["timedtext_fuzz.proto"], 21 cflags: [ 22 "-Wall", 23 "-Werror", 24 ], 25 shared_libs: ["libprotobuf-cpp-full"], 26 proto: { 27 type: "full", 28 canonical_path_from_root: false, 29 local_include_dirs: ["."], 30 export_proto_headers: true, 31 }, 32} 33 34cc_fuzz { 35 name: "timedtext_fuzzer", 36 srcs: [ 37 "timedtext_fuzzer.cpp", 38 ], 39 static_libs: [ 40 "libstagefright_timedtext", 41 "timedtext_fuzz-protos", 42 ], 43 shared_libs: [ 44 "libstagefright_foundation", 45 "libprotobuf-cpp-full", 46 "libbinder", 47 "libprotobuf-mutator", 48 ], 49 fuzz_config: { 50 cc: [ 51 "[email protected]", 52 ], 53 componentid: 42195, 54 hotlists: [ 55 "4593311", 56 ], 57 description: "This fuzzer targets the APIs of libstagefright_timedtext", 58 vector: "local_no_privileges_required", 59 service_privilege: "constrained", 60 users: "multi_user", 61 fuzzed_code_usage: "shipped", 62 }, 63} 64