Add a pixel test with invalid bfranges inside ToUnicode map.

The test file in crbug.com/1021762 is currently rendered correctly
because https://pdfium-review.googlesource.com/62550 added more
validations when parsing ToUnicode map with invalid bfranges.
However, ToUnicode map shouldn't have affected the rendering result for
this issue and more future fixes are needed to completely fix it.

This CL adds a simple test that represents the issue to make sure
future fixes won't affect the rendering result.

Bug: chromium:1021762
Change-Id: I4b0307932d391b3e8a952b302e797376734ed28b
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/65417
Commit-Queue: Hui Yingst <nigi@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/testing/resources/pixel/bug_1021762.in b/testing/resources/pixel/bug_1021762.in
new file mode 100644
index 0000000..0aaf239
--- /dev/null
+++ b/testing/resources/pixel/bug_1021762.in
@@ -0,0 +1,108 @@
+{{header}}
+{{object 1 0}} <<
+  /Type /Catalog
+  /Pages 2 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 4 0 R
+  /Resources <<
+    /Font <<
+      /Ft11 5 0 R
+    >>
+    /ProcSet [/PDF /Text]
+  >>
+  /MediaBox [0 0 100 100]
+>>
+endobj
+{{object 4 0}} <<
+  {{streamlen}}
+>>
+stream
+0 0 0 rg
+BT
+/Ft11 20 Tf
+1 0 0 1 20 40 Tm
+<0024002500260027>Tj
+ET
+endstream
+endobj
+{{object 5 0}} <<
+  /Type /Font
+  /Subtype /Type0
+  /BaseFont /Arial-BoldMT
+  /Encoding /Identity-H
+  /ToUnicode 8 0 R
+  /DescendantFonts [6 0 R]
+>>
+endobj
+{{object 6 0}} <<
+  /Type /Font
+  /Subtype /CIDFontType2
+  /BaseFont /Arial-BoldMT
+  /CIDToGIDMap /Identity
+  /CIDSystemInfo <<
+    /Registry (Adobe)
+    /Ordering (Identity)
+    /Supplement 0
+  >>
+  /FontDescriptor 7 0 R
+  /W [36 39 722.167969]
+>>
+endobj
+{{object 7 0}} <<
+  /Type /FontDescriptor
+  /FontName /Arial-BoldMT
+  /Descent -211.914063
+  /CapHeight 905.273438
+  /StemV 1
+  /Flags 32
+  /ItalicAngle 0
+  /Ascent 905.273438
+  /FontBBox [-627.929688 -376.464844 2000 1055.664063]
+>>
+endobj
+{{object 8 0}} <<
+  {{streamlen}}
+>>
+stream
+/CIDInit /ProcSet findresource begin
+10000 dict begin
+begincmap
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+/CMapName /Adobe-Identity-UCS def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+1 beginbfrange
+<0024> <0027> [ <0041> <0042> <0043> <0044> ]
+endbfrange
+4 beginbfrange
+<09FF> <0A14> [ <1E86> <1E87> <1E88> <1E89> <1E8A> <1E8B> <1E8C> <1E8D> <1E8E> <1E8F> <1E90> <1E91> <1E92> <1E93> <1E94> <1E95> <1E96> <1E97> <1E98> <1E99> <1E9A> <1E9B> ]
+<0F5B> <0F5C> [ <1E9C> <1E9D> ]
+<0D47> <0D47> [ <1E9E> ]
+<0F5D> <0F5D> [ <1E9F> ]
+endbfrange
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+endstream
+endobj
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_1021762_expected.pdf.0.png b/testing/resources/pixel/bug_1021762_expected.pdf.0.png
new file mode 100644
index 0000000..39d531a
--- /dev/null
+++ b/testing/resources/pixel/bug_1021762_expected.pdf.0.png
Binary files differ