summaryrefslogtreecommitdiff
path: root/testing/resources/bug_664284.in
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-11-11 17:55:40 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-11 17:55:40 -0800
commit6e1d6032b7990cdf580c99ff491a1b761ee39ca6 (patch)
treec880c69a8ef1372511a0fecac0bf3d61b1eabe75 /testing/resources/bug_664284.in
parent211d4edbe2f71ca62c76f36ce25090342c58e43c (diff)
downloadpdfium-6e1d6032b7990cdf580c99ff491a1b761ee39ca6.tar.xz
Fix unique ptrs in fpdfppo.cpp
There's a path out that deletes a pointer whose ownership was passed off earlier. This will get simpler once more APIs take unique_ptr. BUG=664284 Review-Url: https://codereview.chromium.org/2495003006
Diffstat (limited to 'testing/resources/bug_664284.in')
-rw-r--r--testing/resources/bug_664284.in75
1 files changed, 75 insertions, 0 deletions
diff --git a/testing/resources/bug_664284.in b/testing/resources/bug_664284.in
new file mode 100644
index 0000000000..50ba8e050a
--- /dev/null
+++ b/testing/resources/bug_664284.in
@@ -0,0 +1,75 @@
+{{header}}
+{{object 1 0}} <<
+ /Type /Catalog
+ /Pages 2 0 R
+ /ViewerPreferences <<
+ /Foo /foo
+ /HideToolbar true
+ /Direction /R2L
+ /ViewArea /CropBox
+ /NumCopies 5
+ >>
+>>
+endobj
+{{object 2 0}} <<
+ /Type /Pages
+ /Count 1
+ /Kids [
+ 3 0 R
+ ]
+>>
+endobj
+% Page number 0.
+{{object 3 0}} <<
+ /Type /Page
+ /Parent 2 0 R
+ /Resources <<
+ /Font <</F1 15 0 R>>
+ >>
+ /Contents [21 0 R]
+ /MediaBox [0 0 612 792]
+ /Annots [999 0 R]
+>>
+endobj
+% Font resource.
+{{object 15 0}} <<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Arial
+>>
+endobj
+% Content for page 0.
+{{object 21 0}} <<
+ /Length 0
+>>
+stream
+BT
+/F1 20 Tf
+100 600 TD (Page1)Tj
+ET
+endstream
+endobj
+% Annots array
+{{object 999 0}} [
+ 29 0 R
+]
+endobj
+{{object 29 0}} <<
+ /Dest 37 0 R
+ /Type /Annot
+>>
+endobj
+{{object 37 0}} [
+ 11 0 R
+]
+endobj
+{{object 11 0}} <<
+ /Type /Page
+>>
+{{xref}}
+trailer <<
+ /Size 6
+ /Root 1 0 R
+>>
+{{startxref}}
+%%EOF