aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBranden Archer <brarcher@google.com>2020-10-15 16:05:09 -0700
committerBranden Archer <brarcher@google.com>2020-10-15 16:05:41 -0700
commite4705ff67ba13f8c6121b0491a85871aa9f514db (patch)
treecb46543931df7392395bbedb401a5f4c7098629c
parent1915e687eb07bced758a5d6de96192ffd0c36554 (diff)
downloadlibsrtp2-e4705ff67ba13f8c6121b0491a85871aa9f514db.tar.gz
Add fuzz target for libsrtp2's fuzzer
Bug: 170243740 Test: Builds and runs Change-Id: I8ec7ebc291cfb43f831c2bd0f5c0699913021c54
-rw-r--r--Android.bp22
1 files changed, 22 insertions, 0 deletions
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
+ }
+}