diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-06-21 23:37:33 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-06-21 23:56:24 +0200 |
commit | b07ad6794eea175ee7f4b8c505995bdb4f397ce6 (patch) | |
tree | 43ca23b83e514e7f1f2c362cfc1b6ca21c21593e /qpdf/qtest | |
parent | a35d4ce9ccb3eb5903df3d221fdfd9a0d1fb5c37 (diff) | |
download | qpdf-b07ad6794eea175ee7f4b8c505995bdb4f397ce6.tar.zst |
Fix bugs found by fuzz tests
* Several assertions in linearization were not always true; change
them to run time errors
* Handle a few cases of uninitialized objects
* Handle pages with no contents when doing form operations
* Handle invalid page tree nodes when traversing pages
Diffstat (limited to 'qpdf/qtest')
-rw-r--r-- | qpdf/qtest/qpdf/no-contents-coalesce-contents.pdf | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/qpdf/qtest/qpdf/no-contents-coalesce-contents.pdf b/qpdf/qtest/qpdf/no-contents-coalesce-contents.pdf index c77ad5c9..28f6b3b1 100644 --- a/qpdf/qtest/qpdf/no-contents-coalesce-contents.pdf +++ b/qpdf/qtest/qpdf/no-contents-coalesce-contents.pdf @@ -7,21 +7,15 @@ endobj << /Count 1 /Kids [ 3 0 R ] /Type /Pages >> endobj 3 0 obj -<< /Contents 4 0 R /MediaBox [ 0 0 720 720 ] /Parent 2 0 R /Resources << >> /Type /Page >> -endobj -4 0 obj -<< /Length 0 /Filter /FlateDecode >> -stream -endstream +<< /MediaBox [ 0 0 720 720 ] /Parent 2 0 R /Resources << >> /Type /Page >> endobj xref -0 5 +0 4 0000000000 65535 f 0000000015 00000 n 0000000064 00000 n 0000000123 00000 n -0000000229 00000 n -trailer << /Root 1 0 R /Size 5 /ID [<52bba3c78160d0c6e851b59110e5d076><31415926535897932384626433832795>] >> +trailer << /Root 1 0 R /Size 4 /ID [<52bba3c78160d0c6e851b59110e5d076><31415926535897932384626433832795>] >> startxref -298 +213 %%EOF |