mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 17:37:14 +00:00
roxmltree recurses once per element level, so a few thousand nested tags overflow the thread stack, an abort no guard can catch. SVG checked the nesting before parsing; the other five roxmltree callers now go through photocraft_io::xml::parse, which applies the same check (512 levels) and, where a DTD is allowed (KRA), refuses an internal subset whose entities could expand into nesting the check never sees. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>