Skip to content

Commit ec7d74a

Browse files
committed
Add test case for overflow in PNG filter (fixes #150)
1 parent 1868a10 commit ec7d74a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Diff for: qpdf/qtest/qpdf.test

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ my @bug_tests = (
225225
["147", "previously caused memory error", 2],
226226
["148", "free memory on bad flate", 2],
227227
["149", "xref prev pointer loop", 3],
228+
["150", "integer overflow", 2],
228229
);
229230
$n_tests += scalar(@bug_tests);
230231
foreach my $d (@bug_tests)

Diff for: qpdf/qtest/qpdf/issue-150.out

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
WARNING: issue-150.pdf: can't find PDF header
2+
overflow/underflow converting 9900000000000000000 to 64-bit integer

Diff for: qpdf/qtest/qpdf/issue-150.pdf

137 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)