mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 09:34:05 +01:00
When clip nesting exceeds HB_GPU_PAINT_MAX_CLIP_DEPTH (3), push_clip_glyph sets unsupported=true but still increments clip_depth. emit_all_clip_sub_blobs then iterated clip_depth without capping, reading past the fixed-size clip_stack array. Cap the iteration at HB_GPU_PAINT_MAX_CLIP_DEPTH. Fixes: https://oss-fuzz.com/testcase-detail/6573156621156352 Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>