mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
collect_pair_variation_indices() added every class returned by the two ClassDefs to class1_set / class2_set without bounding them by class1Count / class2Count. A ClassDef can map glyphs to classes far outside the value matrix, so the collected sets could be enormous and the subsequent nested loop quadratic, although apply() and the serialization loops only ever touch classes inside the matrix. Bound the collected classes by class1Count / class2Count, the same bound the rest of the code already uses. Output is byte-identical; adds a fuzzer regression font. Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-C60AYSA3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>