Files
mtlcl410 d2a7d88d2e hayro-postscript: a \ddd escape above \377 keeps its low eight bits (#2321) (#2324)
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
2026-11-18 23:20:45 -05:00
..

hayro-postscript

Crates.io Documentation

A lightweight PostScript scanner.

This crate provides a scanner for tokenizing PostScript programs into typed objects. It currently only implements a very small subset of the PostScript language, with the main goal of being enough to parse CMAP files, but the scope might be expanded upon in the future.

The supported types include integers and real numbers, name objects, strings and arrays. Unsupported is anything else, including dictionaries, procedures, etc. An error will be returned in case any of these is encountered.

Safety

This crate forbids unsafe code via a crate-level attribute.

License

Licensed under either of

at your option.