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 */ 16package { 17 default_applicable_licenses: ["system_core_init_license"], 18} 19 20cc_defaults { 21 name: "libinit_fuzzer_defaults", 22 static_libs: [ 23 "liblmkd_utils", 24 "libmodprobe", 25 "libprotobuf-cpp-lite", 26 "libpropertyinfoparser", 27 "libsnapshot_init", 28 "libinit", 29 ], 30 shared_libs: [ 31 "libbase", 32 "libfs_mgr", 33 "liblog", 34 "libprocessgroup", 35 "libselinux", 36 ], 37 header_libs: ["libinit_headers"], 38 fuzz_config: { 39 cc: [ 40 "[email protected]", 41 ], 42 componentid: 155276, 43 }, 44} 45 46cc_fuzz { 47 name: "init_parser_fuzzer", 48 srcs: [ 49 "init_parser_fuzzer.cpp", 50 ], 51 defaults: [ 52 "libinit_fuzzer_defaults", 53 ], 54} 55 56cc_fuzz { 57 name: "init_property_fuzzer", 58 srcs: [ 59 "init_property_fuzzer.cpp", 60 ], 61 defaults: ["libinit_fuzzer_defaults"], 62} 63 64cc_fuzz { 65 name: "init_ueventHandler_fuzzer", 66 srcs: [ 67 "init_ueventHandler_fuzzer.cpp", 68 ], 69 defaults: [ 70 "libinit_fuzzer_defaults", 71 ], 72} 73