mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 18:13:53 +01:00
The raster SVG renderer assumed push_group() and push_transform() always succeeded. Under the fuzzing failing-allocator path those pushes can fail, but the matching pops still ran unconditionally. When SVG rendering is nested inside an existing paint operation, an unmatched pop can remove the caller's transform or group and later trip the stack-balance assertions. Track whether each raster SVG push actually grew the corresponding stack and only pop in that case. Tested: - meson compile -C build hb-raster-fuzzer - build/test/fuzzing/hb-raster-fuzzer test/fuzzing/fonts/NotoColorEmoji.subset.ttf Fixes: https://oss-fuzz.com/testcase-detail/5627961964560384 Assisted-by: OpenAI Codex