Files
harfbuzz/test
Behdad Esfahbod 54d71be605 [subset] Clamp overflowing COLRv1 variation values (#6408)
Unbounded variation deltas can overflow integer conversions while
instancing COLRv1 paints and clip boxes. Clamp coordinates, radii,
affine coefficients, and fixed-point values before narrowing them.
Keep affine base precision and existing alpha and clip rounding.

Add a generated font and regression checks for positive and negative
overflow in full and composed instances. Parenthesize the fixed-point
roundf argument so its template comma is safe for macro expansion.

Validation: meson compile -C build and meson test -C build pass
(292 tests passed, one skipped). The font regenerates identically.

Assisted-by: OpenAI Codex
2026-10-18 15:26:44 -06:00
..