Skip to content
Permalink
Browse files

Add test case for overflow in PNG filter (fixes #150)

  • Loading branch information...
jberkenbilt committed Aug 29, 2017
1 parent 1868a10 commit ec7d74a386c0b2f38990079c3b0d2a2b30be0e71
Showing with 3 additions and 0 deletions.
  1. +1 −0 qpdf/qtest/qpdf.test
  2. +2 −0 qpdf/qtest/qpdf/issue-150.out
  3. BIN qpdf/qtest/qpdf/issue-150.pdf
@@ -225,6 +225,7 @@ my @bug_tests = (
["147", "previously caused memory error", 2],
["148", "free memory on bad flate", 2],
["149", "xref prev pointer loop", 3],
["150", "integer overflow", 2],
);
$n_tests += scalar(@bug_tests);
foreach my $d (@bug_tests)
@@ -0,0 +1,2 @@
WARNING: issue-150.pdf: can't find PDF header
overflow/underflow converting 9900000000000000000 to 64-bit integer
Binary file not shown.

0 comments on commit ec7d74a

Please sign in to comment.
You can’t perform that action at this time.