Commit 8abb42e314ccdc9c93518acbd6aab03d8384cb2a

Authored by m-holger
1 parent 800e89de

Fix #1527

fuzz/CMakeLists.txt
@@ -159,6 +159,8 @@ set(CORPUS_OTHER @@ -159,6 +159,8 @@ set(CORPUS_OTHER
159 409905355.fuzz 159 409905355.fuzz
160 411312393.fuzz 160 411312393.fuzz
161 433311400.fuzz 161 433311400.fuzz
  162 + 440599107.fuzz
  163 + 440747125.fuzz
162 4720043549327360.fuzz 164 4720043549327360.fuzz
163 5109284021272576.fuzz 165 5109284021272576.fuzz
164 6489005569146880.fuzz 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,7 +11,7 @@ my $td = new TestDriver('fuzz');
11 11
12 my $qpdf_corpus = $ENV{'QPDF_FUZZ_CORPUS'} || die "must set QPDF_FUZZ_CORPUS"; 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 my @fuzzers = ( 16 my @fuzzers = (
17 ['ascii85' => 1], 17 ['ascii85' => 1],
libqpdf/NNTree.cc
@@ -103,10 +103,12 @@ NNTreeIterator::getNextKid(PathElement& pe, bool backward) @@ -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 bool 108 bool
107 NNTreeIterator::valid() const 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 void 114 void