mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
The raster gradient code assumed every color line had at least one stop. Malformed COLR data can report an empty stop list, which then reaches normalize_color_line() and evaluate_color_line() and reads stops[0]. Treat empty color lines as a failed gradient fetch so malformed inputs render nothing instead of dereferencing past the stop array. Tested: - meson compile -C build hb-raster-fuzzer Fixes: https://oss-fuzz.com/testcase-detail/5216672087867392 Assisted-by: OpenAI Codex