diff options
author | Lei Zhang <thestig@chromium.org> | 2015-12-09 20:15:18 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-12-09 20:15:18 -0800 |
commit | 93181f9a20db7ac706bb9405750303db93762a5b (patch) | |
tree | 8bbaaaf8c4fcf84002d948db174fd53fec24beb5 /testing | |
parent | 3d8f56d817baf2864caac844f0b403b5da7ef8b0 (diff) | |
download | pdfium-93181f9a20db7ac706bb9405750303db93762a5b.tar.xz |
Prevent infinite looping in CPDF_Parser::LoadAllCrossRefV5().
BUG=pdfium:298
R=weili@chromium.org
Review URL: https://codereview.chromium.org/1496703005 .
Diffstat (limited to 'testing')
-rw-r--r-- | testing/resources/bug_298.in | 21 | ||||
-rw-r--r-- | testing/resources/bug_298.pdf | 22 |
2 files changed, 43 insertions, 0 deletions
diff --git a/testing/resources/bug_298.in b/testing/resources/bug_298.in new file mode 100644 index 0000000000..b066778a49 --- /dev/null +++ b/testing/resources/bug_298.in @@ -0,0 +1,21 @@ +{{header}} +{{object 1 0}} << +>> +endobj +{{object 2 0}} << + /Type /Catalog + /Length 0 + /Filter ASCIIHexDecode + /Prev 35 + /W [1 2 3] +>> +stream +endstream +endobj +trailer << + /Size 6 + /Root 1 0 R +>> +startxref +35 +%%EOF diff --git a/testing/resources/bug_298.pdf b/testing/resources/bug_298.pdf new file mode 100644 index 0000000000..5b195597fd --- /dev/null +++ b/testing/resources/bug_298.pdf @@ -0,0 +1,22 @@ +%PDF-1.7 +% ò¤ô +1 0 obj << +>> +endobj +2 0 obj << + /Type /Catalog + /Length 0 + /Filter ASCIIHexDecode + /Prev 35 + /W [1 2 3] +>> +stream +endstream +endobj +trailer << + /Size 6 + /Root 1 0 R +>> +startxref +35 +%%EOF |