From e4705ff67ba13f8c6121b0491a85871aa9f514db Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Thu, 15 Oct 2020 16:05:09 -0700 Subject: Add fuzz target for libsrtp2's fuzzer Bug: 170243740 Test: Builds and runs Change-Id: I8ec7ebc291cfb43f831c2bd0f5c0699913021c54 --- Android.bp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Android.bp b/Android.bp index b18e80b..5b15dca 100644 --- a/Android.bp +++ b/Android.bp @@ -43,3 +43,25 @@ cc_library_static { "//device/google/cuttlefish/host/frontend/webrtc:__subpackages__", ], } + +cc_fuzz { + name: "libsrtp2-fuzzer", + host_supported: true, + vendor: true, + static_libs: ["libsrtp2"], + cflags: [ + "-Wno-unused-parameter", + ], + srcs: [ + "fuzzer/fuzzer.c", + "fuzzer/mt19937.cpp", + "fuzzer/testmem.c", + ], + // There are so many corpus files that when all are used it + // exceeds the posix_spawn limit. So, only some of the files + // are used. + corpus: ["fuzzer/corpus/0*"], + fuzz_config: { + componentid: 87896 + } +} -- cgit v1.2.3