summaryrefslogtreecommitdiff
path: root/oss-fuzz/Makefile.am
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2022-06-08 13:39:23 +0200
committerMartijn van Beurden <mvanb1@gmail.com>2022-06-15 07:46:48 +0200
commit81c973fa1c0fd90edf5789c3c0573b4867799110 (patch)
tree609d688c5476e33ccd99cef9b7a0df6fc158e93b /oss-fuzz/Makefile.am
parent78d85dd4e4e8044d0f6989182cd1a22a461dce37 (diff)
downloadflac-81c973fa1c0fd90edf5789c3c0573b4867799110.tar.gz
Add new decoder fuzzer, mostly to cover seeking
This second decoder fuzzer dumps the fuzz input to a file, which enables testing of seeking code
Diffstat (limited to 'oss-fuzz/Makefile.am')
-rw-r--r--oss-fuzz/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/oss-fuzz/Makefile.am b/oss-fuzz/Makefile.am
index c99dc85a..fecec44e 100644
--- a/oss-fuzz/Makefile.am
+++ b/oss-fuzz/Makefile.am
@@ -31,7 +31,7 @@ EXTRA_DIST = \
noinst_PROGRAMS =
if USE_OSSFUZZERS
-noinst_PROGRAMS += fuzzer_encoder fuzzer_encoder_v2 fuzzer_decoder
+noinst_PROGRAMS += fuzzer_encoder fuzzer_encoder_v2 fuzzer_decoder fuzzer_seek
endif
fuzzer_encoder_SOURCES = fuzzer_encoder.cc
@@ -49,6 +49,12 @@ fuzzer_decoder_CXXFLAGS = $(AM_CXXFLAGS) $(LIB_FUZZING_ENGINE)
fuzzer_decoder_LDFLAGS = $(AM_LDFLAGS)
fuzzer_decoder_LDADD = $(flac_libs)
+fuzzer_seek_SOURCES = fuzzer_seek.cc
+fuzzer_seek_CXXFLAGS = $(AM_CXXFLAGS) $(LIB_FUZZING_ENGINE)
+fuzzer_seek_LDFLAGS = $(AM_LDFLAGS)
+fuzzer_seek_LDADD = $(flac_libs)
+
+
flac_libs = \
$(top_builddir)/src/libFLAC/libFLAC-static.la \
$(top_builddir)/src/libFLAC++/libFLAC++-static.la \