Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: testing/resources/pixel/bug_524043_7.in

Issue 1365253003: Merge to XFA: Fix the issue that pdfium swallows 'fi' or 'ff' in some pdf files (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: testing/resources/pixel/bug_524043_7.in
diff --git a/testing/resources/hello_world.in b/testing/resources/pixel/bug_524043_7.in
similarity index 66%
copy from testing/resources/hello_world.in
copy to testing/resources/pixel/bug_524043_7.in
index 19fce0ce335de77ea31e295a87025eb52f65110e..c95f2d94e1d59fe085064a9829a913dfa631fd40 100644
--- a/testing/resources/hello_world.in
+++ b/testing/resources/pixel/bug_524043_7.in
@@ -34,19 +34,24 @@ endobj
/BaseFont /Helvetica
>>
endobj
+% Case 7:
+% /Length incorrectly identifies middle of stream.
+% "endstream" will block the stream.
+% The text before the keyword "endstream" can be rendered although
+% both "endstream" and "endobj" are missing at the end of stream.
{{object 6 0}} <<
+ /Length 87
>>
stream
BT
20 50 Td
/F1 12 Tf
-(Hello, world!) Tj
+(endobj is text) Tj
+endstream
0 50 Td
-/F2 16 Tf
-(Goodbye, world!) Tj
+/F2 13 Tf
+(endstream is text per /Length) Tj
ET
-endstream
-endobj
{{xref}}
trailer <<
/Size 6
« no previous file with comments | « testing/resources/pixel/bug_524043_6_expected.pdf.0.png ('k') | testing/resources/pixel/bug_524043_7_expected.pdf.0.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698