mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-22 18:41:27 +01:00
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