Commit f4e290524408f252af4f7496ed41ddb3d62b75d5

Authored by m-holger
Committed by GitHub
2 parents 800e89de 8abb42e3

Merge pull request #1528 from m-holger/fuzz

Fix #1527
fuzz/CMakeLists.txt
... ... @@ -159,6 +159,8 @@ set(CORPUS_OTHER
159 159 409905355.fuzz
160 160 411312393.fuzz
161 161 433311400.fuzz
  162 + 440599107.fuzz
  163 + 440747125.fuzz
162 164 4720043549327360.fuzz
163 165 5109284021272576.fuzz
164 166 6489005569146880.fuzz
... ...
fuzz/qpdf_extra/440599107.fuzz 0 → 100644
No preview for this file type
fuzz/qpdf_extra/440747125.fuzz 0 → 100644
No preview for this file type
fuzz/qtest/fuzz.test
... ... @@ -11,7 +11,7 @@ my $td = new TestDriver('fuzz');
11 11  
12 12 my $qpdf_corpus = $ENV{'QPDF_FUZZ_CORPUS'} || die "must set QPDF_FUZZ_CORPUS";
13 13  
14   -my $n_qpdf_files = 99; # increment when adding new files
  14 +my $n_qpdf_files = 101; # increment when adding new files
15 15  
16 16 my @fuzzers = (
17 17 ['ascii85' => 1],
... ...
libqpdf/NNTree.cc
... ... @@ -103,10 +103,12 @@ NNTreeIterator::getNextKid(PathElement& pe, bool backward)
103 103 }
104 104 }
105 105  
  106 +// iterator can be incremented or decremented, or dereferenced. This does not imply that it points
  107 +// to a valid item.
106 108 bool
107 109 NNTreeIterator::valid() const
108 110 {
109   - return item_number >= 0 && ivalue.first && ivalue.second;
  111 + return item_number >= 0;
110 112 }
111 113  
112 114 void
... ...