1/* 2 * Copyright (C) 2023 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 17package { 18 default_team: "trendy_team_android_kernel", 19} 20 21cc_defaults { 22 name: "libHidlBase_fuzzer_defaults", 23 host_supported: true, 24 static_libs: [ 25 "libhidlbase", 26 "libbase", 27 "liblog", 28 "libcutils", 29 "libutils", 30 "libprocessgroup", 31 "libjsoncpp", 32 "libfmq", 33 ], 34 target: { 35 android: { 36 shared_libs: [ 37 "libvndksupport", 38 ], 39 }, 40 }, 41 fuzz_config: { 42 cc: [ 43 "[email protected]", 44 "[email protected]", 45 ], 46 componentid: 155276, 47 hotlists: [ 48 "4593311", 49 ], 50 description: "The fuzzers target the APIs of libhidlbase library", 51 vector: "local_no_privileges_required", 52 service_privilege: "privileged", 53 users: "multi_user", 54 fuzzed_code_usage: "shipped", 55 }, 56} 57 58cc_fuzz { 59 name: "libHidlBase_parcel_fuzzer", 60 srcs: ["libHidlBase_parcel_fuzzer.cpp"], 61 defaults: ["libHidlBase_fuzzer_defaults"], 62} 63