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_parcel_fuzzer", 12 defaults: ["libbinder_ndk_host_user"], 13 host_supported: true, 14 15 fuzz_config: { 16 cc: ["smoreland@google.com"], 17 }, 18 19 srcs: [ 20 "binder.cpp", 21 "binder_ndk.cpp", 22 "hwbinder.cpp", 23 "main.cpp", 24 "random_fd.cpp", 25 "random_parcel.cpp", 26 "util.cpp", 27 ], 28 static_libs: [ 29 "libbase", 30 "libbinder_random_parcel", 31 "libcgrouprc", 32 "libcgrouprc_format", 33 "libcutils", 34 "libhidlbase", 35 "liblog", 36 "libprocessgroup", 37 "libjsoncpp", 38 "libutils", 39 ], 40 41 target: { 42 android: { 43 shared_libs: [ 44 "libbinder_ndk", 45 "libbinder", 46 ], 47 }, 48 host: { 49 static_libs: [ 50 "libbinder_ndk", 51 "libbinder", 52 ], 53 }, 54 }, 55 // This flag enables verbose output in the fuzz target, and is very useful 56 // for debugging a failure. If you are trying to diagnose how a crash was 57 // produced, you may find uncommenting the below line very useful. 58 // cflags: ["-DENABLE_LOG_FUZZ"], 59} 60 61cc_library_static { 62 name: "libbinder_random_parcel", 63 host_supported: true, 64 target: { 65 darwin: { 66 enabled: false, 67 } 68 }, 69 srcs: [ 70 "random_fd.cpp", 71 "random_parcel.cpp", 72 ], 73 shared_libs: [ 74 "libbase", 75 "libbinder", 76 "libcutils", 77 "libutils", 78 ], 79 local_include_dirs: ["include_random_parcel"], 80 export_include_dirs: ["include_random_parcel"], 81} 82