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

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

Issue 1232803005: Add test case for parsing endobj keywords. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Added a few more tests. Created 5 years, 5 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/endobj12.in
diff --git a/testing/resources/hello_world.in b/testing/resources/pixel/endobj12.in
similarity index 71%
copy from testing/resources/hello_world.in
copy to testing/resources/pixel/endobj12.in
index 19fce0ce335de77ea31e295a87025eb52f65110e..1a89b316506cdde8f977a0bc92f3173fb15ff7ce 100644
--- a/testing/resources/hello_world.in
+++ b/testing/resources/pixel/endobj12.in
@@ -34,19 +34,28 @@ endobj
/BaseFont /Helvetica
>>
endobj
+% Case 11:
+% /Length points well past intended end of stream, with embedded keywords.
+% Both should render as text.
{{object 6 0}} <<
+ /Length 210
>>
stream
BT
20 50 Td
/F1 12 Tf
-(Hello, world!) Tj
+(endobj is text) Tj
0 50 Td
-/F2 16 Tf
-(Goodbye, world!) Tj
+/F2 13 Tf
+(endstream is text per /Length) Tj
ET
endstream
endobj
+
+% blah blah blah.
+% blah blah blah.
+% blah blah blah.
+
{{xref}}
trailer <<
/Size 6

Powered by Google App Engine
This is Rietveld 408576698