summaryrefslogtreecommitdiff
path: root/testing/resources
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-01-29 17:39:26 -0800
committerTom Sepez <tsepez@chromium.org>2015-01-29 17:39:26 -0800
commit1d43e82efde0ddbad4a3e32d860a597c3bb6ab83 (patch)
tree104b5467946df952ca513016a86faad172c6cc33 /testing/resources
parentcedc562477cbca7496bd88999b773b72912c40f8 (diff)
downloadpdfium-1d43e82efde0ddbad4a3e32d860a597c3bb6ab83.tar.xz
Add minimized test cases for stack exhaustion crash to repository.
These reproduce under pdfium_test with a scale factor < 1.0. Add them to the repository now for the sake of posterity, even if we are not automatically testing them. BUG=451265 R=thestig@chromium.org TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/869923003
Diffstat (limited to 'testing/resources')
-rw-r--r--testing/resources/bug_451265.in80
-rw-r--r--testing/resources/bug_451265.pdf98
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