aboutsummaryrefslogtreecommitdiff
path: root/fuzz
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-06-27 23:04:20 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-06-27 23:04:20 +0200
commitf028cce2095cb3b6bc68d41bc838db7f62977972 (patch)
tree67358b04bb74005c7147710601c6661377214b28 /fuzz
parent243104a8c254cd79e84bfb6829a840af9cded54d (diff)
Re-Added corpus zipfile generation required for google-oss fuzzer
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am
index f70382ac0..0b7304cf5 100644
--- a/fuzz/Makefile.am
+++ b/fuzz/Makefile.am
@@ -27,3 +27,10 @@ endif
fuzz_ndpi_reader_LINK=$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CXX) $(AM_CXXFLAGS) $(CXXFLAGS) \
$(fuzz_ndpi_reader_LDFLAGS) $(LDFLAGS) -o $@
+
+# required for Google oss-fuzz
+# see https://github.com/google/oss-fuzz/tree/master/projects/ndpi
+testpcaps := $(wildcard ../tests/pcap/*.pcap)
+
+fuzz_ndpi_reader_seed_corpus.zip: $(testpcaps)
+ zip -r fuzz_ndpi_reader_seed_corpus.zip $(testpcaps)