mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
A custom glyph mapping can leave unassigned output glyph IDs beyond the source glyph count. The preprocessing glyph-to-SID map only covers source glyphs, so use the existing charset lookup for those gaps and skip the map-based range shortcut there. Compare plain and preprocessed subsets of existing name-keyed and CID-keyed fonts with output gaps. The new regression fails under ASan before the fix. The complete ASan/UBSan Meson suite passes afterward (293 tests, including 23 CFF1 API subtests). Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-42ZOI3TR. Assisted-by: OpenAI Codex