mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 05:51:05 +01:00
push_clip_glyph kept a hash + linear-scan cache of emitted clip paths to dedup repeated clip-glyph uses within a single COLRv1 paint tree. With paint contexts being one-glyph per use, the cache mostly churned; it also made hb_memcmp trip on sanitizer-null when an empty path matched an equally-empty existing entry (fuzzer-reached null-deref). Drop the cache: always emit a fresh <path> + <clipPath> pair per push_clip_glyph. Removes defined_paths / content_entry_t from the paint struct. Regenerate the two handwriting COLR expected SVGs whose clip-reuse now produces distinct path defs. Assisted-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>