diff options
author | Joey Jiao <joeyjiaojg@163.com> | 2021-01-18 11:05:57 +0800 |
---|---|---|
committer | Joey Jiao <joeyjiaojg@163.com> | 2021-01-20 15:46:41 +0800 |
commit | 7ad8f6c7176c26c4fdbd80cec33f969235055839 (patch) | |
tree | 4a4e29ff30ed5e9a5c24f2ea8f00bdcc7cf2c0a5 /custom_mutators/libprotobuf-mutator-example/Android.bp | |
parent | 9d9e148e5cb9e9118289a1d52e0b7aeff040b8bb (diff) | |
download | afl++-7ad8f6c7176c26c4fdbd80cec33f969235055839.tar.gz |
android: Add libprotobuf aflpp custom_mutator example
Diffstat (limited to 'custom_mutators/libprotobuf-mutator-example/Android.bp')
-rw-r--r-- | custom_mutators/libprotobuf-mutator-example/Android.bp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/custom_mutators/libprotobuf-mutator-example/Android.bp b/custom_mutators/libprotobuf-mutator-example/Android.bp new file mode 100644 index 00000000..01f1c23e --- /dev/null +++ b/custom_mutators/libprotobuf-mutator-example/Android.bp @@ -0,0 +1,32 @@ +cc_library_shared { + name: "libprotobuf-mutator-example-afl", + vendor_available: true, + host_supported: true, + + cflags: [ + "-g", + "-O0", + "-fPIC", + "-Wall", + ], + + srcs: [ + "lpm_aflpp_custom_mutator_input.cc", + "test.proto", + ], + + shared_libs: [ + "libprotobuf-cpp-full", + "libprotobuf-mutator", + ], +} + +cc_binary { + name: "libprotobuf-mutator-vuln", + vendor_available: true, + host_supported: true, + + srcs: [ + "vuln.c", + ], +} |