Skip to content
Permalink
Browse files Browse the repository at this point in the history
Add test case for overflow in PNG filter (fixes #150)
  • Loading branch information
jberkenbilt committed Aug 29, 2017
1 parent 1868a10 commit ec7d74a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions qpdf/qtest/qpdf.test
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions qpdf/qtest/qpdf/issue-150.out
@@ -0,0 +1,2 @@
WARNING: issue-150.pdf: can't find PDF header
overflow/underflow converting 9900000000000000000 to 64-bit integer
Binary file added qpdf/qtest/qpdf/issue-150.pdf
Binary file not shown.

0 comments on commit ec7d74a

Please sign in to comment.