mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 17:19:17 +01:00
The slow-population fast path of PairPosFormat1_3::intersects() walked the glyph set and indexed pairSet by the Coverage index of each glyph. In a well-formed font those indices increase with glyph id, but a broken Coverage can repeat an index, so one PairSet could be scanned once per glyph, giving quadratic time. Track the last index used and skip any that does not increase (and any NOT_COVERED), following the existing "Broken table. Skip." convention, so each PairSet is scanned at most once. Well-formed fonts are unchanged. Adds a fuzzer regression font. Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-6GSU471N. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>