mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
AxisValueMap::instantiate() renormalizes the from/to coordinates and stores them with set_float() without clamping. With malformed input the result can fall outside [-1,1] (e.g. 2.192 -> 35923), overflowing the int16 F2DOT14 storage: UB under UBSan's float-cast-overflow, and a silently truncated avar table otherwise. Clamp both coordinates to [-1,1] before storing. Add the reported fuzzer input as a seed. Reported by iceray-Li. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>