mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
The ordinary CFF2 Private DICT parser ignores hint blend operators but leaves their raw operands on its stack. Multiple valid blend groups can therefore overflow the stack during font loading, making glyph extents and drawing fail. The subset parser already discards these operands. Clear ignored operands after each hint blend in the ordinary parser too. Add a synthetic font with two seven-result groups over 40 regions and check its glyph extents at default and non-default locations. Each group fits the stack, but their raw operands together exceed its capacity. The regression fails before the fix and passes after. The complete Meson suite passes: 272 tests passed, one skipped. Assisted-by: Codex <noreply@openai.com>