aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2020-01-23 18:35:48 +0100
committerGitHub <noreply@github.com>2020-01-23 18:35:48 +0100
commit5f6fd8d2a57d5f004e9661b7ce658aff7dc6ece0 (patch)
tree750ccfe0485cf6b0c932521fcf95832b308fb76e
parent5a40f9b7fd50a53a55e0d842672b68abb5543190 (diff)
parent77db14fd7a8ef94e8a501944dab6c8aa919ed9ab (diff)
Merge pull request #831 from catenacyber/fuzzcorpus
Generates automatically corpus for fuzz target
-rw-r--r--fuzz/Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am
index d85dbac15..a6298699b 100644
--- a/fuzz/Makefile.am
+++ b/fuzz/Makefile.am
@@ -24,3 +24,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 $@
+
+EXTRA_fuzz_ndpi_reader_DEPENDENCIES = fuzz_ndpi_reader_seed_corpus.zip
+
+testpcaps := $(wildcard ../tests/pcap/*.pcap)
+
+fuzz_ndpi_reader_seed_corpus.zip: $(testpcaps)
+ zip -r fuzz_ndpi_reader_seed_corpus.zip $(testpcaps)