Commit f5a1e2872ee80d4320de91668a992976e0d7168c

Authored by Jay Berkenbilt
1 parent 6d4115b7

Add overlong UTF-8 bytes into JSON tests

qpdf/qtest/qpdf/weird-tokens-alt.json
... ... @@ -13,6 +13,9 @@
13 13 "/Extra": [
14 14 "u:Names with binary data",
15 15 "n:/ABCDEF+#ba#da#cc#e5",
  16 + "n:/OVERLONG+#c0#81",
  17 + "n:/OVERLONG+#e0#81#82",
  18 + "n:/OVERLONG+#f0#81#82#83",
16 19 "/ABCEDEF+π",
17 20 "n:/one+#a0two",
18 21 "n:/text#2fplain",
... ...
qpdf/qtest/qpdf/weird-tokens.json
... ... @@ -13,6 +13,9 @@
13 13 "/Extra": [
14 14 "u:Names with binary data",
15 15 "n:/ABCDEF+#ba#da#cc#e5",
  16 + "n:/OVERLONG+#c0#81",
  17 + "n:/OVERLONG+#e0#81#82",
  18 + "n:/OVERLONG+#f0#81#82#83",
16 19 "/ABCEDEF+π",
17 20 "n:/one+#a0two",
18 21 "/text/plain",
... ...
qpdf/qtest/qpdf/weird-tokens.pdf
... ... @@ -7,6 +7,9 @@
7 7 /Extra [
8 8 (Names with binary data)
9 9 /ABCDEF+#ba#da#cc#e5
  10 + /OVERLONG+#c0#81
  11 + /OVERLONG+#e0#81#82
  12 + /OVERLONG+#f0#81#82#83
10 13 /ABCEDEF+#cf#80
11 14 /one+#a0two
12 15 /text#2fplain
... ... @@ -80,16 +83,16 @@ xref
80 83 0 7
81 84 0000000000 65535 f
82 85 0000000025 00000 n
83   -0000000261 00000 n
84   -0000000343 00000 n
85   -0000000539 00000 n
86   -0000000638 00000 n
87   -0000000657 00000 n
  86 +0000000333 00000 n
  87 +0000000415 00000 n
  88 +0000000611 00000 n
  89 +0000000710 00000 n
  90 +0000000729 00000 n
88 91 trailer <<
89 92 /Root 1 0 R
90 93 /Size 7
91 94 /ID [<42841c13bbf709d79a200fa1691836f8><728c020f464c3cf7e02c12605fa7d88b>]
92 95 >>
93 96 startxref
94   -763
  97 +835
95 98 %%EOF
... ...