libpldm: Add fuzzing for firmware FD responder
This includes a fuzz target fd-fuzz, and infrastructure to run with
either honggfuzz or AFL.
fd-fuzz-input1.dat was crafted from parts of a pldm firmware update
packet capture, as a seed to guide fuzzers.
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Change-Id: I424761a29a22bc964201fd7bd94ddc09a6ac89df
diff --git a/tests/fuzz/meson.build b/tests/fuzz/meson.build
new file mode 100644
index 0000000..5412c7f
--- /dev/null
+++ b/tests/fuzz/meson.build
@@ -0,0 +1,8 @@
+executable(
+ 'fd-fuzz',
+ 'fd-fuzz.cpp',
+ # for __AFL_LOOP
+ cpp_args: ['-Wno-gnu-statement-expression-from-macro-expansion'],
+ include_directories: test_include_dirs,
+ dependencies: [libpldm_dep],
+)