Steven Moreland | 88b1d3c | 2019-10-14 17:19:28 -0700 | [diff] [blame] | 1 | cc_fuzz { |
| 2 | name: "binder_parcel_fuzzer", |
Steven Moreland | 28f8142 | 2019-10-03 10:40:59 -0700 | [diff] [blame] | 3 | defaults: ["libbinder_ndk_host_user"], |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 4 | host_supported: true, |
Steven Moreland | 97d4e1a | 2019-10-29 14:24:26 -0700 | [diff] [blame^] | 5 | |
| 6 | fuzz_config: { |
| 7 | cc: ["smoreland@google.com"], |
| 8 | }, |
| 9 | |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 10 | srcs: [ |
| 11 | "binder.cpp", |
Steven Moreland | 28f8142 | 2019-10-03 10:40:59 -0700 | [diff] [blame] | 12 | "binder_ndk.cpp", |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 13 | "hwbinder.cpp", |
| 14 | "main.cpp", |
| 15 | "util.cpp", |
| 16 | ], |
| 17 | static_libs: [ |
| 18 | "libbase", |
| 19 | "libbinderthreadstate", |
| 20 | "libcgrouprc", |
| 21 | "libcgrouprc_format", |
| 22 | "libcutils", |
| 23 | "libhidlbase", |
| 24 | "liblog", |
| 25 | "libprocessgroup", |
| 26 | "libjsoncpp", |
| 27 | "libutils", |
| 28 | ], |
| 29 | |
| 30 | target: { |
| 31 | android: { |
Steven Moreland | 28f8142 | 2019-10-03 10:40:59 -0700 | [diff] [blame] | 32 | shared_libs: [ |
| 33 | "libbinder_ndk", |
| 34 | "libbinder", |
| 35 | ], |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 36 | }, |
| 37 | host: { |
Steven Moreland | 28f8142 | 2019-10-03 10:40:59 -0700 | [diff] [blame] | 38 | static_libs: [ |
| 39 | "libbinder_ndk", |
| 40 | "libbinder", |
| 41 | ], |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 42 | }, |
| 43 | }, |
Steven Moreland | 88b1d3c | 2019-10-14 17:19:28 -0700 | [diff] [blame] | 44 | // This flag enables verbose output in the fuzz target, and is very useful |
| 45 | // for debugging a failure. If you are trying to diagnose how a crash was |
| 46 | // produced, you may find uncommenting the below line very useful. |
| 47 | // cflags: ["-DENABLE_LOG_FUZZ"], |
Steven Moreland | 46e0da7 | 2019-09-05 15:52:02 -0700 | [diff] [blame] | 48 | } |