From be6fca21f5f38536bd415ff11668648cfc5fd229 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 Mar 2026 09:55:24 -0600 Subject: [PATCH] [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 --- ...se-minimized-hb-vector-fuzzer-4521131913838592 | Bin 0 -> 162 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-vector-fuzzer-4521131913838592 diff --git a/test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-vector-fuzzer-4521131913838592 b/test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-vector-fuzzer-4521131913838592 new file mode 100644 index 0000000000000000000000000000000000000000..1fe8c272c188d5575383d8c64a823b4ce99b0ef6 GIT binary patch literal 162 zcmeYd3Grv(+{GZansZ}LesUrM46uM198fMRkXC|8F)%XlC@?Vao@8LK;QP