summaryrefslogtreecommitdiff
path: root/testing/resources
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-12-09 23:56:51 -0800
committerLei Zhang <thestig@chromium.org>2015-12-09 23:56:51 -0800
commit5fae972302efd368a3ecc7cfa655891323c59a1b (patch)
treed77db9b3ecb77b129cc05ba69bbd7b74e7c7f0f2 /testing/resources
parent3b1707f50e4961c2a350243acbeaaafd89e22fca (diff)
downloadpdfium-5fae972302efd368a3ecc7cfa655891323c59a1b.tar.xz
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 .
Diffstat (limited to 'testing/resources')
-rw-r--r--testing/resources/bug_298.in21
-rw-r--r--testing/resources/bug_298.pdf22
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