From e4ef3d15407a78e261b0a36bf79c89ac7f2a7233 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 16 Dec 2021 15:53:24 -0500 Subject: Remove original qpdf fuzz seed corpus from tests Since the introduction of fuzz testing, there has never been a problem found because of a failure of a file in the fuzzer seed corpus. As the fuzzer has found problems, they have been added to the test suite, and that should be adequate to exercise the fuzzers in the tesing environment as well as providing adequate regression testing. Removing these original files shaves many minutes off the builds in CI. --- fuzz/build.mk | 3 +-- fuzz/original-corpus.tar.gz | Bin 214551 -> 0 bytes fuzz/qtest/fuzz.test | 6 +----- 3 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 fuzz/original-corpus.tar.gz (limited to 'fuzz') diff --git a/fuzz/build.mk b/fuzz/build.mk index b2e2d06a..ac384576 100644 --- a/fuzz/build.mk +++ b/fuzz/build.mk @@ -85,9 +85,8 @@ $(foreach F,$(CORPUS_EXTRA),$(eval \ mkdir -p $(CORPUS_DIR); \ cp $(F) $(CORPUS_DIR)/$(SHA1_$(notdir $(F))))) -fuzz/$(OUTPUT_DIR)/fuzz_corpus.stamp: fuzz/original-corpus.tar.gz $(CORPUS_EXTRA) +fuzz/$(OUTPUT_DIR)/fuzz_corpus.stamp: $(CORPUS_EXTRA) mkdir -p $(CORPUS_DIR) - (cd $(CORPUS_DIR); tar xzf ../../original-corpus.tar.gz) touch $@ $(foreach B,$(FUZZERS),$(eval \ diff --git a/fuzz/original-corpus.tar.gz b/fuzz/original-corpus.tar.gz deleted file mode 100644 index 63db162d..00000000 Binary files a/fuzz/original-corpus.tar.gz and /dev/null differ diff --git a/fuzz/qtest/fuzz.test b/fuzz/qtest/fuzz.test index 73d4bd9d..ad3e448f 100644 --- a/fuzz/qtest/fuzz.test +++ b/fuzz/qtest/fuzz.test @@ -12,11 +12,7 @@ my $td = new TestDriver('fuzz'); my $qpdf_n_test_files = 31; my @extra = glob("../qpdf_extra/*.fuzz"); my $qpdf_n_extra_files = scalar(@extra); -my $qpdf_n_orig_files = 2557; -my $qpdf_n_files = ($qpdf_n_test_files + - $qpdf_n_extra_files + - $qpdf_n_orig_files); - +my $qpdf_n_files = ($qpdf_n_test_files + $qpdf_n_extra_files); my @fuzzers = ( ['ascii85' => 1], -- cgit v1.2.3-54-g00ecf