diff options
author | Branden Archer <brarcher@google.com> | 2020-10-15 16:05:09 -0700 |
---|---|---|
committer | Branden Archer <brarcher@google.com> | 2020-10-15 16:05:41 -0700 |
commit | e4705ff67ba13f8c6121b0491a85871aa9f514db (patch) | |
tree | cb46543931df7392395bbedb401a5f4c7098629c | |
parent | 1915e687eb07bced758a5d6de96192ffd0c36554 (diff) | |
download | libsrtp2-e4705ff67ba13f8c6121b0491a85871aa9f514db.tar.gz |
Add fuzz target for libsrtp2's fuzzer
Bug: 170243740
Test: Builds and runs
Change-Id: I8ec7ebc291cfb43f831c2bd0f5c0699913021c54
-rw-r--r-- | Android.bp | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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 + } +} |