mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 08:21:32 +01:00
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