diff options
author | Lei Zhang <thestig@chromium.org> | 2018-03-21 17:19:46 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-03-21 17:19:46 +0000 |
commit | bf85feeafdd8791f9dab7bfcd14ff850e015be26 (patch) | |
tree | 83d03d643bf8807fc55d16b114d6173587fa974f /testing/resources/bug_821454.in | |
parent | a17ac192c043a6bce51e16cf7cd076087c78d9a9 (diff) | |
download | pdfium-bf85feeafdd8791f9dab7bfcd14ff850e015be26.tar.xz |
Add a regression test for bug 821454.
WideString::Compare() went bad but no embedder test failed. Improve
coverage by hand crafting a PDF similar to the sample PDF in the bug
report.
BUG=chromium:823369
Change-Id: I267f53ba3ef7612bf54771a85f8305b2cbc3cfcb
Reviewed-on: https://pdfium-review.googlesource.com/28910
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/resources/bug_821454.in')
-rw-r--r-- | testing/resources/bug_821454.in | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/testing/resources/bug_821454.in b/testing/resources/bug_821454.in new file mode 100644 index 0000000000..168c983d10 --- /dev/null +++ b/testing/resources/bug_821454.in @@ -0,0 +1,75 @@ +{{header}} +{{object 1 0}} +<< + /Type /Catalog + /Pages 2 0 R + /Names 14 0 R + /AcroForm << /Fields [ 8 0 R 9 0 R ] >> +>> +endobj +{{object 2 0}} +<< + /Type /Pages + /Count 1 + /Kids [ 3 0 R ] +>> +endobj +{{object 3 0}} +<< + /Type /Page + /Parent 2 0 R + /Contents 6 0 R + /MediaBox [ 0 0 300 600 ] + /Annots [ 8 0 R 9 0 R ] +>> +endobj +{{object 6 0}} +<< +{{streamlen}} +>> +stream +endstream +endobj +{{object 8 0}} +<< + /Type /Annot + /Subtype /Link + /Rect [ 100 350 200 380 ] + /Dest (target10) +>> +endobj +{{object 9 0}} +<< + /Type /Annot + /Subtype /Link + /Rect [ 100 400 200 430 ] + /Dest (target100) +>> +endobj +{{object 14 0}} +<< + /Dests 15 0 R +>> +endobj +{{object 15 0}} +<< + /Names [ + (target10) 16 0 R + (target100) 17 0 R + ] +>> +endobj +{{object 16 0}} +<< + /D [3 0 R /XYZ 100 200 0] +>> +endobj +{{object 17 0}} +<< + /D [3 0 R /XYZ 150 250 0] +>> +endobj +{{xref}} +{{trailer}} +{{startxref}} +%%EOF |