summaryrefslogtreecommitdiff
path: root/testing/resources
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-01-11 14:16:10 -0800
committerWei Li <weili@chromium.org>2016-01-11 14:16:10 -0800
commitf2b300af96e05bb372664752a64f6ab506820a12 (patch)
tree861da2db3fc42ad79876aa93a8c9d763fd3c262f /testing/resources
parent884a7d3b64d220e95548492e28549615a7f86827 (diff)
downloadpdfium-f2b300af96e05bb372664752a64f6ab506820a12.tar.xz
Merge to XFA: Fix an infinite loop parsing in CPDF_SyntaxParser::GetObject()
CPDF_SyntaxParser::GetObject() may enter into an infinite loop when a signature dictionary doesn't have 'Contents' field. Add a check to avoid that. BUG=pdfium:344 TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1575833004 . (cherry picked from commit d3ab0f383f6736657480a8bb418c5e715a1aed3b) Review URL: https://codereview.chromium.org/1571333004 .
Diffstat (limited to 'testing/resources')
-rw-r--r--testing/resources/bug_344.pdf9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/resources/bug_344.pdf b/testing/resources/bug_344.pdf
new file mode 100644
index 0000000000..c015c66791
--- /dev/null
+++ b/testing/resources/bug_344.pdf
@@ -0,0 +1,9 @@
+'%PDF-1.6
+%âãÏÓ
+<<0 0 objParams%PDF-2.4
+trailer%
+<<Subtype:XM/Length 308/Type/Sig[/Me’ada'%PDF-1.6
+%âãÏÓ
+<<0 0 objParams%PDF-1.4
+trailer%
+<<Subtype:XM/Length 308/Type/Sig[/Me’adata>>ta>>%%sPsP \ No newline at end of file