Commit 677a42645ef22b5a50741bad5facf9d8a8bc6d21

Nick Wellnhofer 2022-07-28T20:21:24

Make XPath depth check work with recursive invocations EXSLT functions like dyn:map or dyn:evaluate invoke xmlXPathRunEval recursively. Don't set depth to zero but keep and restore the original value to avoid stack overflows when abusing these functions.