diff options
author | Wei Li <weili@chromium.org> | 2016-03-03 11:28:06 -0800 |
---|---|---|
committer | Wei Li <weili@chromium.org> | 2016-03-03 11:28:06 -0800 |
commit | 0e2e5d7554af277cfb312294378c2cd862a349d5 (patch) | |
tree | 34cf0f04ef734f7bd08cdd91204e8dd249ffeb63 /testing/resources/bookmarks_circular.in | |
parent | d8741afa1c3f31723ec62131d1bb8a78081cd1e4 (diff) | |
download | pdfium-0e2e5d7554af277cfb312294378c2cd862a349d5.tar.xz |
Fix infinite loop for bookmark search
BUG=pdfium:420
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1757373002 .
Diffstat (limited to 'testing/resources/bookmarks_circular.in')
-rw-r--r-- | testing/resources/bookmarks_circular.in | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/testing/resources/bookmarks_circular.in b/testing/resources/bookmarks_circular.in new file mode 100644 index 0000000000..48a5695e17 --- /dev/null +++ b/testing/resources/bookmarks_circular.in @@ -0,0 +1,98 @@ +{{header}} +{{object 1 0}} << + /Type /Catalog + /Pages 2 0 R + /Outlines 14 0 R +>> +endobj +{{object 2 0}} << + /Type /Pages + /Count 2 + /Kids [ + 3 0 R + 4 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] +>> +endobj +% Page number 1. +{{object 4 0}} << + /Type /Page + /Parent 2 0 R + /Resources << + /Font <</F1 15 0 R>> + >> + /Contents [22 0 R] + /MediaBox [0 0 612 792] +>> +endobj +% First bookmark +{{object 10 0}} << + /Title (A Good Beginning) + /Parent 14 0 R + /Next 11 0 R + /Dest (foo) +>> +endobj +% Last bookmark +{{object 11 0}} << + /Title (A Good Ending) + /Parent 14 0 R + /Next 10 0 R + /Dest (bar) +>> +endobj +% Root bookmark +{{object 14 0}} << + /Type /Outlines + /First 10 0 R + /Last 11 0 R + /Count 2 +>> +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 +% Content for page 1. +{{object 22 0}} << + /Length 0 +>> +stream +BT +/F1 20 Tf +100 600 TD (Page2)Tj +ET +endstream +endobj +{{xref}} +trailer << + /Size 6 + /Root 1 0 R +>> +{{startxref}} +%%EOF |