mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
CFF1 INDEX counts are 16-bit. Serializing a larger iterator truncated its count before reserving the offset array, then wrote offsets for every item. Check the count before allocating or writing the offsets. Test the CFF1 boundary and the corresponding valid CFF2 counts, and reject a subset glyph mapping that overflows the CharStrings INDEX. Both regressions fail before this change. The full Meson suite passes (293 tests), including the subset and API suites. Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-8ROS1VQ9. Assisted-by: OpenAI Codex