From 5fae972302efd368a3ecc7cfa655891323c59a1b Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 9 Dec 2015 23:56:51 -0800 Subject: Merge to XFA: Prevent infinite looping in CPDF_Parser::LoadAllCrossRefV5(). BUG=pdfium:298 TBR=weili@chromium.org Review URL: https://codereview.chromium.org/1496703005 . (cherry picked from commit 93181f9a20db7ac706bb9405750303db93762a5b) Review URL: https://codereview.chromium.org/1514783002 . --- testing/resources/bug_298.in | 21 +++++++++++++++++++++ testing/resources/bug_298.pdf | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 testing/resources/bug_298.in create mode 100644 testing/resources/bug_298.pdf (limited to 'testing/resources') 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 -- cgit v1.2.3