53 `sha256` entries in the SOURCE.json files of hayro, hayro-cmap,
hayro-interpret, hayro-jbig2, hayro-postscript and hayro-syntax did not
match the committed files. 49 of them are files that #2472 changed; the
other 4 were already stale before it. Each entry now holds the SHA-256
of the file's blob at this commit. The `source_sha256` and
`source_git_blob` fields are unchanged.
A literal string's octal escape was converted with `u8::from_str_radix`,
which fails above 0o377, so the byte was dropped. Read one to three octal
digits into a u16 (at most 0o777) and push the low byte, as ISO 32000-2
7.3.4.2 and the PostScript Language Reference (third edition, 3.2.2)
specify: "high-order overflow shall be ignored". Escapes up to `\377`
decode as before.
Record the patch in SOURCE.json and vendor/README.craft-reader.md.
Fixes#2321
hayro-postscript 0.1.0 is the token scanner hayro-cmap uses for the
CMap streams PDFs embed. Its object reader skipped each `<<` or `>>`
by calling itself again, so a stream holding a long run of `<` or `>`
bytes recursed once per pair and aborted the process with a stack
overflow.
Vendor the crates.io package unchanged and patch `object::read` to
skip those runs in a loop, returning the same next object as before.
Wire it in like the other Hayro crates: workspace exclude,
[patch.crates-io] entry, SOURCE.json with registry and local hashes,
the backend test script, NOTICE, ATTRIBUTION.md and the reader README.
Tests cover a million `<` and a million `>` bytes, `<< /A 1 >>` and
nested `<<<< /X >>>>` runs.