summaryrefslogtreecommitdiff
path: root/testing/resources
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-05-18 00:50:14 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-18 08:06:10 +0000
commitcfd56852b6375d2b4eea473399231caf7dcdbf36 (patch)
tree46618475f362e55d6a28c480b09017d764221fa7 /testing/resources
parent46abb66cb57d4bc6b9326efd7a0c0e776e594db2 (diff)
downloadpdfium-cfd56852b6375d2b4eea473399231caf7dcdbf36.tar.xz
Fix a situation where images are not properly rendered.
This regressed in commit e21fe98. When the image's bpc is a multiple of 8, there exists a colorspace, and there is a Decode parameter, the image data source was incorrectly pointing to a data structure that only contained black pixels. BUG=chromium:718762 Change-Id: I5d3fa739e41726b4ed1ebc16465e17f83fff9f8d Reviewed-on: https://pdfium-review.googlesource.com/5333 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'testing/resources')
-rw-r--r--testing/resources/pixel/bug_718762.in67
-rw-r--r--testing/resources/pixel/bug_718762_expected.pdf.0.pngbin0 -> 211 bytes
2 files changed, 67 insertions, 0 deletions
diff --git a/testing/resources/pixel/bug_718762.in b/testing/resources/pixel/bug_718762.in
new file mode 100644
index 0000000000..3459dc0a1c
--- /dev/null
+++ b/testing/resources/pixel/bug_718762.in
@@ -0,0 +1,67 @@
+{{header}}
+{{object 1 0}} <<
+ /Type /Pages
+ /Count 1
+ /Kids[ 3 0 R ]
+>>
+endobj
+{{object 2 0}} <<
+ /Type /Catalog
+ /Pages 1 0 R
+>>
+endobj
+{{object 3 0}} <<
+ /Type /Page
+ /Parent 1 0 R
+ /Resources 6 0 R
+ /MediaBox[ 0 0 64 64]
+ /Contents[ 5 0 R ]
+>>
+endobj
+{{object 4 0}} <<
+ /Type /XObject
+ /Subtype /Image
+ /Name /I1
+ /Width 5000
+ /Height 5000
+ /BitsPerComponent 8
+ /ColorSpace /DeviceCMYK
+ /Filter [/ASCIIHexDecode /FlateDecode /DCTDecode]
+ /Decode [1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0]
+ /Length 734
+>>
+stream
+789cedcd3d4ec2001806e00f680529d4165a643671f112c6901095b09838b01983899bd7e02c9ec
+2c143f8b37802af50cba81770799eef9ddebcc9d7bc355f515c2faf96d1e974e2b2bd68be23bfd8
+3edd3fc436f69acf5844afdbdda795b44907699a24e9b0df3f188c86a35136ccb2713e29c679996
+759312bca6955d7f5e8e8783eabe693aaae9a97a806d3dd74972c4e625dc6a68c5519cd6bd4ede3
+f8edb0adabe26f1bcd47e4c922d6b18955c4793cdf9ddedc9e3dfe9d01000000000000000000000
+0000000000000000000000000000000000000000000000000000000000000000000000000000000
+0000000000000000000000000000000000000000000000000000000000000000000000000000000
+0000000000000000000000000000000000000000000000000000000000000000000000000000000
+000000000000000000000000000000000000000000000000000000000000000000000000fc835ef
+3fe03ce2e1eba
+endstream
+endobj
+{{object 5 0}} <<
+/Length 28
+>>
+stream
+q
+64 0 0 64 0 0 cm
+/I1 Do
+Q
+endstream
+endobj
+{{object 6 0}} <<
+ /ProcSet [/PDF /ImageC]
+ /XObject<</I1 4 0 R >>
+>>
+endobj
+{{xref}}
+trailer <<
+ /Size 7
+ /Root 2 0 R
+>>
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_718762_expected.pdf.0.png b/testing/resources/pixel/bug_718762_expected.pdf.0.png
new file mode 100644
index 0000000000..73069f23aa
--- /dev/null
+++ b/testing/resources/pixel/bug_718762_expected.pdf.0.png
Binary files differ