1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_native_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_native_license"], 8} 9 10cc_fuzz { 11 name: "binder_rpc_fuzzer", 12 host_supported: true, 13 14 fuzz_config: { 15 cc: ["smoreland@google.com"], 16 }, 17 corpus: ["corpus/*"], 18 dictionary: "binder_rpc_fuzzer.dict", 19 20 srcs: [ 21 "main.cpp", 22 ], 23 // Not using libbinder_tls_shared_deps to use deterministic boringssl libraries. 24 static_libs: [ 25 "libbase", 26 "libcutils", 27 "liblog", 28 "libbinder_tls_static", 29 "libbinder_tls_test_utils", 30 "libssl_fuzz_unsafe", 31 "libcrypto_fuzz_unsafe", 32 ], 33 cflags: [ 34 "-DBORINGSSL_UNSAFE_DETERMINISTIC_MODE" // for RAND_reset_for_fuzzing 35 ], 36 target: { 37 android: { 38 shared_libs: [ 39 "libbinder", 40 "libutils", 41 ], 42 }, 43 host: { 44 static_libs: [ 45 "libbinder", 46 "libutils", 47 ], 48 }, 49 }, 50 data: [ 51 "server.crt", 52 "server.key", 53 ], 54} 55