mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
usvg, resvg and tiny-skia panic on some malformed drawings (an feOffset past the pixmap's size, an embedded SVG image of near-zero width). Parse and every render now run under catch_unwind, as the HEIF and JPEG XL decoders do: a parse panic is IoError::Svg, a panicking element is dropped with a warning and the rest opens, a smart-object render is an error, and an icon-theme mask is None. Co-Authored-By: Claude Opus 5.5 <[email protected]>