commit | 6f1470a5d6e3e369fe93f52d5760ba7c947f0cd1 | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Tue Aug 25 18:50:45 2020 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Wed Aug 26 00:22:25 2020 +0200 |
tree | d2a466c9b156851c607e151f45087fa12d4de2ae | |
parent | 8c3ef083ca6806b48e1fca94213993a6669e1c08 [diff] |
Hardcode maximum XPath recursion depth Always limit nested functions calls to 5000. This avoids call stack overflows with deeply nested expressions. The expression parser produces about 10 nested function calls when parsing a subexpression in parentheses, so the effective nesting limit is about 500 which should be more than enough. Use a lower limit when fuzzing to account for increased memory usage when using sanitizers.