Add fuzz targets
Fuzzing is something that's good to do for a general purpose library and
can find bugs relatively quickly.
Enable fuzzing with libfuzzer (selected only because it was the easiest
to set up) and enable fuzz targets for 3 of our buffer-based interfaces.
Change-Id: I695a3a60ba09bea92cd462566bf2c46337eabd4b
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/meson.build b/meson.build
index 4936a76..7f805eb 100644
--- a/meson.build
+++ b/meson.build
@@ -30,7 +30,7 @@
project_description = 'libcper library'
-section_sources = files(
+libcper_parse_sources = files(
'sections/cper-section-ampere.c',
'sections/cper-section-arm.c',
'sections/cper-section-ccix-per.c',
@@ -83,7 +83,7 @@
json_c_dep = json_c.get_variable('json_c_dep')
endif
-libcper_parse_sources = files(
+libcper_parse_sources += files(
'base64.c',
'common-utils.c',
'cper-parse.c',
@@ -99,7 +99,6 @@
libcper_parse = library(
'cper-parse',
libcper_parse_sources,
- section_sources,
edk_sources,
version: meson.project_version(),
include_directories: libcper_include_dir,