From 7ad8f6c7176c26c4fdbd80cec33f969235055839 Mon Sep 17 00:00:00 2001 From: Joey Jiao Date: Mon, 18 Jan 2021 11:05:57 +0800 Subject: android: Add libprotobuf aflpp custom_mutator example --- .../libprotobuf-mutator-example/Android.bp | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 custom_mutators/libprotobuf-mutator-example/Android.bp (limited to 'custom_mutators/libprotobuf-mutator-example/Android.bp') 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", + ], +} -- cgit 1.4.1