Add a fuzzer for libpdx ServiceDispatcher class.
Adds a fuzzer for the libpdx ServiceDispatcher class.
Test: Ran fuzzers for a couple million iterations on a Pixel3a device. This ran at about 600 executions per second,
resulting in 2% coverage for the entire memory space, however we believe it is a much higher percentage of libpdx coverage
alone.
Signed-off-by: Corbin Souffrant <corbin.souffrant@leviathansecurity.com>
Change-Id: Ie5d7ea76d182843e15dcaca4639c54656652a238
diff --git a/libs/vr/libpdx/fuzz/Android.bp b/libs/vr/libpdx/fuzz/Android.bp
new file mode 100644
index 0000000..20a03ea
--- /dev/null
+++ b/libs/vr/libpdx/fuzz/Android.bp
@@ -0,0 +1,19 @@
+cc_fuzz {
+ name: "libpdx_fuzz",
+ clang: true,
+ srcs: [
+ "service_dispatcher_fuzzer.cpp",
+ ],
+ cflags: [
+ "-Wall",
+ "-Wextra",
+ "-Werror",
+ ],
+ static_libs: [
+ "libpdx",
+ ],
+ shared_libs: [
+ "libutils",
+ "liblog",
+ ],
+}