summaryrefslogtreecommitdiff
path: root/testing/resources
diff options
context:
space:
mode:
authorOliver Chang <ochang@chromium.org>2015-10-22 16:42:33 -0700
committerOliver Chang <ochang@chromium.org>2015-10-22 16:42:33 -0700
commit361a48c04bf14db54731ac99c3c3411b62684775 (patch)
tree6661a83e3c66dbb61195a95dd5183870c39cee24 /testing/resources
parent2f604d58ba2d84034c68094bc6d7b63ba321821e (diff)
downloadpdfium-361a48c04bf14db54731ac99c3c3411b62684775.tar.xz
Merge to XFA: Set a recursion limit on CPDF_DataAvail::CheckPageNode
This limit mirrors FX_MAX_PAGE_LEVEL in fpdf_parser_document.cpp Clean merge. TBR=thestig@chromium.org BUG=544880 Review URL: https://codereview.chromium.org/1421743003 . (cherry picked from commit 3bfb1dcf56f8470b693ad1126e24e65f9d17926c) Review URL: https://codereview.chromium.org/1418173003 .
Diffstat (limited to 'testing/resources')
-rw-r--r--testing/resources/bug_544880.in19
-rw-r--r--testing/resources/bug_544880.pdf25
2 files changed, 44 insertions, 0 deletions
diff --git a/testing/resources/bug_544880.in b/testing/resources/bug_544880.in
new file mode 100644
index 0000000000..926a491d91
--- /dev/null
+++ b/testing/resources/bug_544880.in
@@ -0,0 +1,19 @@
+{{header}}
+{{object 1 0}} <<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+{{object 2 0}} <<
+ /Type /Pages
+ /Count 1
+ /Kids [2 0 R]
+>>
+endobj
+{{xref}}
+trailer <<
+ /Size 3
+ /Root 1 0 R
+>>
+{{startxref}}
+%%EOF
diff --git a/testing/resources/bug_544880.pdf b/testing/resources/bug_544880.pdf
new file mode 100644
index 0000000000..4a8e5b9904
--- /dev/null
+++ b/testing/resources/bug_544880.pdf
@@ -0,0 +1,25 @@
+%PDF-1.7
+% ò¤ô
+1 0 obj <<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+2 0 obj <<
+ /Type /Pages
+ /Count 1
+ /Kids [2 0 R]
+>>
+endobj
+xref
+0 3
+0000000000 65535 f
+0000000015 00000 n
+0000000068 00000 n
+trailer <<
+ /Size 3
+ /Root 1 0 R
+>>
+startxref
+131
+%%EOF