mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
MemorySanitizer reported use of uninitialized data while building the SVG document cache used by vector painting. The parser keeps small aggregate structs on the stack, and their padding could stay poisoned as they were copied through the open-element stack. Zero-initialize the parser stack and the temporary span / element records before filling their fields. That keeps later copies and container insertions from carrying undefined padding into the MSan instrumented path. Testing: - meson test -C build --suite fuzzing --print-errorlogs - meson test -C build Co-authored-by: OpenAI Codex <codex@openai.com>