summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-01-19 12:16:49 -0800
committerWei Li <weili@chromium.org>2016-01-19 12:16:49 -0800
commit90853cb1dfd1bf3803ec21cfae3e93948137be61 (patch)
tree0bac14905d5f767039707453b307dc94ad1b44d6 /testing
parent2cb9ae0309417222aa3555dabe4749119dc36d84 (diff)
downloadpdfium-90853cb1dfd1bf3803ec21cfae3e93948137be61.tar.xz
Fix infinite loops caused by calling circular indirect objects
There are multiple functions in CPDF_Object class which can cause infinite loop due to recursively calling circular indirect objects. Fix them by deference indirect object first. BUG=pdfium:355 R=jun_fang@foxitsoftware.com, thestig@chromium.org Review URL: https://codereview.chromium.org/1585533002 .
Diffstat (limited to 'testing')
-rw-r--r--testing/resources/bug_355.pdf15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/resources/bug_355.pdf b/testing/resources/bug_355.pdf
new file mode 100644
index 0000000000..0fc53b050e
--- /dev/null
+++ b/testing/resources/bug_355.pdf
@@ -0,0 +1,15 @@
+%P%PDF-1%PDF-1.4
+%Ǐ
+6 0 obj%<</Lengt 6 0 R/FiltDF-1.2
+%
+7 0 obj <<
+! /Type /Fojt
+trailer
+<<////OC3
+endobj
+2 0 obj <<
+ /Resouces <<
+ /FT 6 1 R
+>>
+%PDF-%PDF-2.6 %
+1 /(0 er '/obFl \ No newline at end of file