mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
When a ValueFormat is empty its records take no bytes, so
ValueFormat::sanitize_values() and PairPosFormat2::sanitize() pass
check_range() without charging max_ops for the records, while later
code (the subsetter, variation-index collection) still walks count
records. A tiny table can thus declare a huge valueCount / class
matrix and cost the subsetter CPU out of proportion to its size.
Charge count ops when the record size / stride is zero, following the
918193ebf precedent. Adds two fuzzer regression fonts.
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-HFGOLC64.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>