mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 05:51:05 +01:00
Early returns for missing extents, empty PDF paint output, or other render failures retained content despite the automatic-clear contract. Move clearing to scope guards in the common draw and paint render entry points, covering every return for SVG and PDF. Document the failure behavior. Extend the lifecycle regression to compare subsequent output with fresh contexts for both formats, including PDF resources and empty PDF paint renders. The regression fails before the fix. The full Meson suite passes: 290 passed and one existing test was skipped. The lifecycle test also passes as C99. Fixes: https://github.com/harfbuzz/harfbuzz/issues/6358 Assisted-by: Codex