mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 05:51:05 +01:00
#6521 made hb_raster_draw_render() skip the scanline sweep when the estimated pixel work exceeds the budget, but it still returned a cleared image, so callers could not tell a budget failure from an outline that legitimately covers nothing. Check the budget before allocating the image and return NULL, the same way render already reports allocation and configuration failures. The accumulated edges are still cleared by the existing scope guard. All in-tree callers (raster paint masks, hb-raster utilities) already handle a NULL result. test_budget_sweep now expects NULL for the over-budget case. Full meson test passes. Follow-up to #6521 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>