summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorWei Li <weili@chromium.org>2016-01-14 12:10:20 -0800
committerWei Li <weili@chromium.org>2016-01-14 12:10:20 -0800
commit5d5d9fe7bd1c9566b9d6570015b7c60894d9fc0c (patch)
treeff558a8ca8b51e7c1d7300602aae7d7195c8fb7e /testing
parent0b56371b1e9683676cf191f2d9d41d40d47c3726 (diff)
downloadpdfium-5d5d9fe7bd1c9566b9d6570015b7c60894d9fc0c.tar.xz
Correct the way to count pages and to avoid infinite loop
BUG=pdfium:360 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1585823003 .
Diffstat (limited to 'testing')
-rw-r--r--testing/resources/bug_360.pdf14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/resources/bug_360.pdf b/testing/resources/bug_360.pdf
new file mode 100644
index 0000000000..6e69c7bfed
--- /dev/null
+++ b/testing/resources/bug_360.pdf
@@ -0,0 +1,14 @@
+%PDF-1.2
+xref
+0 3
+0000%PDF-1.2
+xref
+0 3
+0000000000 65535 f 0000000009 00000 n
+00000000000 0000 n
+trailer << /Size 3 /Root 1 0 R %PDF-1.5
+%âãÏÓ
+1 0 obj
+<</MarkInfo<</Marked true>>/Lang(es-ES)/Pages 1 0 R/Type/Catalog>endob
+2 0 obj
+<</ITXT(2.1.7)/Kids[1 0 R 4 0 R 5 0 R 1 0 R]/Cout 4/Type/Pages>>