1/* 2 * Copyright (C) 2021 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 */ 17 18package { 19 // See: http://go/android-license-faq 20 default_applicable_licenses: ["Android-Apache-2.0"], 21} 22 23cc_fuzz { 24 name: "fastboot_fuzzer", 25 host_supported: true, 26 device_supported: false, 27 srcs: [ 28 "fastboot_fuzzer.cpp", 29 "socket_mock_fuzz.cpp", 30 ], 31 header_libs: [ 32 "bootimg_headers", 33 "fastboot_headers", 34 ], 35 static_libs: [ 36 "libext4_utils", 37 "libcrypto", 38 "libfastboot", 39 "libbuildversion", 40 "libbase", 41 "libziparchive", 42 "libsparse", 43 "libutils", 44 "liblog", 45 "libz", 46 "libdiagnose_usb", 47 "libbase", 48 "libcutils", 49 "libgtest", 50 "libgtest_main", 51 "libbase", 52 "libadb_host", 53 "liblp", 54 "liblog", 55 ], 56 fuzz_config: { 57 cc: [ 58 "android-media-fuzzing-reports@google.com", 59 ], 60 componentid: 533764, 61 hotlists: [ 62 "4593311", 63 ], 64 description: "The fuzzer targets the APIs of libfastboot library", 65 vector: "local_no_privileges_required", 66 service_privilege: "host_only", 67 users: "single_user", 68 fuzzed_code_usage: "shipped", 69 }, 70} 71