mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
Changing extents during painting could allocate small group surfaces against the original root and clip, causing out-of-bounds reads and writes. Keep all session surfaces at the root's extents. Use the same extents for group clear charges and pixel budget recharges, so changing the configured rectangle cannot undercount work on the active image. Document that render clears extents rather than deferring a mid-session change to the next image. Adapt the pixel regression from #6450 and check the render lifecycle. Add an internal test for new and cached group clear charges and budget recharging, using small buffers. Reproduced the heap overflow on main under ASan. The budget test fails with #6450. With this change, both raster test targets pass under ASan+UBSan and the full Meson suite passes (274 tests). Assisted-by: OpenAI Codex Co-authored-by: nussaiba shaikh <nussaibah@bugqore.com>