Commit Graph
1 Commits
Author SHA1 Message Date
Cursor AgentandAbimael Martell bfb33caa37 fix(glyph_names): handle non-ASCII input in uniXXXX glyph name parsing
Use str::get instead of a byte-length check plus slice when parsing the
uniXXXX glyph-name form. The byte-length guard only proved the index was
in bounds, not on a UTF-8 char boundary, so a glyph name containing
non-ASCII bytes could cause a slice on a non-boundary index. Switch to a
checked slice that folds into the existing Option flow, and add tests.

Co-authored-by: Abimael Martell <abimaelmartell@users.noreply.github.com>
2026-08-09 07:04:43 +00:00