You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
harden: bound directory recursion depth when parsing an index
_xml_parse_dirtree recurses once per directory level, and the index
reader sets XML_PARSE_HUGE, which removes libxml2's own nesting limit.
A crafted index with deeply nested <directory> elements could recurse
until the C stack overflows while mounting an untrusted cartridge.
Add a depth bound (a stack-safety guard, not an LTFS format limit; the
format defines no maximum depth) set well above any tree that fits in a
conventional PATH_MAX, so it cannot reject a volume produced from a real
filesystem. Introduces LTFS_XML_DEEP_NESTING (5051).
0 commit comments