mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 07:21:06 +01:00
Fix out-of-bounds pixel write in rasterize_tile: border tiles that extend past the image edge were writing px-x_origin beyond the row stride, wrapping into the start of the next row and overwriting correctly-rasterized pixels with zero. Pass px1/py1 (exclusive bounds) to rasterize_tile and clip the pixel loops accordingly. Also: drop unused ex0 in pass 2 of tile assignment; move test-raster from src/ to test/api/ and convert it to the GLib g_assert/hb_test_add framework. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>