Merge "Add fuzz target for libsrtp2's fuzzer" am: fdf3b79eed am: a90aa04675 am: a66ea4eeef am: eb528ef5ce

Original change: https://android-review.googlesource.com/c/platform/external/libsrtp2/+/1462968

Change-Id: I5b8a292d6186eea092fd5c4785ee8102ea6a13fc
diff --git a/Android.bp b/Android.bp
index b18e80b..5b15dca 100644
--- a/Android.bp
+++ b/Android.bp
@@ -43,3 +43,25 @@
         "//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
+    }
+}