mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
The analytic rasterizer stored every row's area and cover in 32- and 16-bit accumulators. Highly overlapping outlines could exceed those ranges and trigger signed overflow before coverage was clamped. Keep compact SIMD accumulators for rows with at most 127 active edges. Lazily use 64-bit scalar accumulators for denser rows, where the narrow cover bound no longer holds. Add regressions for area overflow and cover wrapping. Tested with meson test -C build, the ASan/UBSan raster API test, all raster fuzzer corpus chunks, and the supplied reproducer. Assisted-by: OpenAI Codex <noreply@openai.com>