From 6bc997a89429662668fbdce2a0d217a93e8a1be1 Mon Sep 17 00:00:00 2001 From: Wei Li Date: Tue, 19 Jan 2016 12:35:03 -0800 Subject: Merge to XFA: 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 TBR=jun_fang@foxitsoftware.com, thestig@chromium.org Review URL: https://codereview.chromium.org/1585533002 . (cherry picked from commit 90853cb1dfd1bf3803ec21cfae3e93948137be61) Review URL: https://codereview.chromium.org/1602103004 . --- testing/resources/bug_355.pdf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 testing/resources/bug_355.pdf (limited to 'testing') 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%<> +%PDF-%PDF-2.6 % +1 /(0 er '/obFl \ No newline at end of file -- cgit v1.2.3