mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 09:09:13 +01:00
[vector] Fail closed on SVG paint body OOM
The SVG paint backend could keep going after failing-malloc poisoned the root or nested group body buffers. In particular, hb_vector_paint_ensure_initialized() only checked group_stack itself, not the allocated root body, and some group and glyph paths ignored push_or_fail() or append-induced vector error state. Treat an errored root body as initialization failure, reject cached and non-cached glyph emission when defs, current body, or captured scratch enter error state, and stop ignoring nested group push failure. Testing: CCACHE_DISABLE=1 meson test -C build-codex Fixes: https://oss-fuzz.com/testcase-detail/4521131913838592 Assisted-by: OpenAI Codex
This commit is contained in:
1 parent
6af602fa64
commit
be6fca21f5
1 file changed
Binary file not shown.
Reference in new issue
Block a user