Limit nesting level of elements
I don't know if libxml2 has a limit on the nesting level of elements; probably it does.
Should librsvg have a nesting limit, too? The main concern is the stack depth when rendering/cascading, I think (e.g. the depth of tree traversals). See #686 (closed) for example (more of a musl issue than anything, but it makes me wonder).
Although we have a limit on the number of instanced elements through <use>
, we have no limit on the nesting level; this can cause stack overflow.
Edited by Federico Mena Quintero