mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
Malformed reflected gradients can produce very large finite gradient parameters. The raster backend normalized reflect mode by casting floorf(t) to int, which can overflow and drive LUT lookups past the fixed-size stack buffer. Fold reflected coordinates with fmodf(), clamp LUT inputs defensively, and add the minimized oss-fuzz raster testcase to the corpus. Fixes: https://oss-fuzz.com/testcase-detail/6597066439852032 Tested: meson test -C build Co-Authored-By: OpenAI Codex <codex@openai.com>