diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-01-29 18:16:16 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-01-29 18:16:16 -0800 |
commit | 09dc51a44ba2c084ca553d8a52ba6e2e669f4f9c (patch) | |
tree | a8deda72748cf24cc9f8782ddea1d1f28d187e42 /testing/resources | |
parent | daa2e84dfca2f1cf39e064bd9ad6ee3e2cd70825 (diff) | |
download | pdfium-09dc51a44ba2c084ca553d8a52ba6e2e669f4f9c.tar.xz |
Merge to XFA: Fix infinite recursion in CPDF_RenderStatus::RenderSingleObject().
This brings in:
14b2bb0 Fix infinite recursion in CPDF_RenderStatus::RenderSingleObject().
1d43e82 Add minimized test cases for stack exhaustion crash to repository.
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/893493002
Diffstat (limited to 'testing/resources')
-rw-r--r-- | testing/resources/bug_451265.in | 80 | ||||
-rw-r--r-- | testing/resources/bug_451265.pdf | 98 |
2 files changed, 178 insertions, 0 deletions
diff --git a/testing/resources/bug_451265.in b/testing/resources/bug_451265.in new file mode 100644 index 0000000000..7fb2764d05 --- /dev/null +++ b/testing/resources/bug_451265.in @@ -0,0 +1,80 @@ +{{header}} +{{object 1 0}} << + /Kids [3 0 R] + /Type /Pages + /Count 1 +>> +endobj +{{object 2 0}} << + /Type /Catalog + /Pages 1 0 R +>> +endobj +{{object 3 0}} << + /Resources 11 0 R + /Type /Page + /Contents 10 0 R + /Parent 1 0 R +>> +endobj +{{object 10 0}} << +>> +stream +1 0 0 1 315.779 733.039 cm +1 0 0 1 2.835 -173.614 cm +1.04704 0 0 1.04704 0 0 cm +/Im6 Do +endstream +endobj +{{object 11 0}} << + /XObject << + /Im6 12 0 R + >> +>> +endobj +{{object 12 0}} << + /Subtype /Form + /Resources << + /XObject << + /x15 13 0 R + >> + >> +>> +stream +/x15 Do +endstream +endobj +{{object 13 0}} << + /Subtype /Form + /Resources << + /Pattern << + /p31 14 0 R + >> + >> +>> +stream +q /Pattern cs /p31 scn /a0 gs +0 0 224.720001 160.399994 re f +Q +endstream +endobj +{{object 14 0}} << + /PatternType 1 + /BBox [0 0 225 161] + /Resources << + /XObject << + /x47 12 0 R + >> + >> +>> +stream +/x47 Do +endstream +endobj +{{xref}} +trailer << + /Root 2 0 R + /Size 110 +>> +{{startxref}} +%%EOF diff --git a/testing/resources/bug_451265.pdf b/testing/resources/bug_451265.pdf new file mode 100644 index 0000000000..299363dac7 --- /dev/null +++ b/testing/resources/bug_451265.pdf @@ -0,0 +1,98 @@ +%PDF-1.7 +% ò¤ô +1 0 obj << + /Kids [3 0 R] + /Type /Pages + /Count 1 +>> +endobj +2 0 obj << + /Type /Catalog + /Pages 1 0 R +>> +endobj +3 0 obj << + /Resources 11 0 R + /Type /Page + /Contents 10 0 R + /Parent 1 0 R +>> +endobj +10 0 obj << +>> +stream +1 0 0 1 315.779 733.039 cm +1 0 0 1 2.835 -173.614 cm +1.04704 0 0 1.04704 0 0 cm +/Im6 Do +endstream +endobj +11 0 obj << + /XObject << + /Im6 12 0 R + >> +>> +endobj +12 0 obj << + /Subtype /Form + /Resources << + /XObject << + /x15 13 0 R + >> + >> +>> +stream +/x15 Do +endstream +endobj +13 0 obj << + /Subtype /Form + /Resources << + /Pattern << + /p31 14 0 R + >> + >> +>> +stream +q /Pattern cs /p31 scn /a0 gs +0 0 224.720001 160.399994 re f +Q +endstream +endobj +14 0 obj << + /PatternType 1 + /BBox [0 0 225 161] + /Resources << + /XObject << + /x47 12 0 R + >> + >> +>> +stream +/x47 Do +endstream +endobj +xref +0 15 +0000000000 65536 f +0000000015 00000 n +0000000078 00000 n +0000000131 00000 n +0000000000 65536 f +0000000000 65536 f +0000000000 65536 f +0000000000 65536 f +0000000000 65536 f +0000000000 65536 f +0000000221 00000 n +0000000348 00000 n +0000000405 00000 n +0000000531 00000 n +0000000712 00000 n +trailer << + /Root 2 0 R + /Size 110 +>> +startxref +860 +%%EOF |