aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCory Barker <cobark@google.com>2022-07-22 17:36:14 +0000
committerCory Barker <cobark@google.com>2022-08-02 02:20:45 +0000
commit5e3d1e4c31e6f1134ff636ff34d5628d07d672e1 (patch)
tree8ccce47a3990f4beb10ab82b1853fd7cf3815fe6
parent63937cec5ce3a78a16deabc783886af01adc4bae (diff)
downloadlibsrtp2-5e3d1e4c31e6f1134ff636ff34d5628d07d672e1.tar.gz
Updated the way we build AFL++ fuzz binaries
Test: Built AFL fuzzers individually and built all using haiku command and built libfuzzers individually and also by using haiku command. Ran selected fuzzers manually to ensure fuzzing still worked. Description: Previously we needed to add cc_afl_fuzz to build an afl fuzz binary, however, to turn current libFuzzers into AFL fuzzers this would required an update to each Android.bp file which is a lot of work, and would also require an approval from each Android.bp file owner, which is even more work. To get around this (and also to match how AFL fuzzers are built in G3) we will build AFL++ fuzz binaries by command line option FUZZ_FRAMEWORK. When FUZZ_FRAMEWORK=AFL is set, all cc_fuzz modules will be built Change-Id: Ic4fd34f8d5cf5cfa7db6c00235efdb230190da35
-rw-r--r--Android.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index b3bc32c..8cc9ea5 100644
--- a/Android.bp
+++ b/Android.bp
@@ -92,6 +92,9 @@ cc_fuzz {
// exceeds the posix_spawn limit. So, only some of the files
// are used.
corpus: ["fuzzer/corpus/0*"],
+ fuzzing_frameworks: {
+ afl: false,
+ },
fuzz_config: {
componentid: 87896
}