aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-12-16 21:53:24 +0100
committerJay Berkenbilt <ejb@ql.org>2021-12-16 21:53:24 +0100
commite4ef3d15407a78e261b0a36bf79c89ac7f2a7233 (patch)
tree2b10ad5232d7e2045b570beea1b65bfd5fba3307
parent4024953682f7679f51c1584cbe47b65dbaa9c6d5 (diff)
downloadqpdf-e4ef3d15407a78e261b0a36bf79c89ac7f2a7233.tar.zst
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.
-rw-r--r--fuzz/build.mk3
-rw-r--r--fuzz/original-corpus.tar.gzbin214551 -> 0 bytes
-rw-r--r--fuzz/qtest/fuzz.test6
3 files changed, 2 insertions, 7 deletions
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
--- a/fuzz/original-corpus.tar.gz
+++ /dev/null
Binary files 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],