diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-08-17 03:42:11 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2020-08-17 03:42:11 +0200 |
commit | 9ae2f94df1721e002941b40665efb762aefcea1a (patch) | |
tree | 240d5c7d16056535aef85be56d116db1ba2195d0 | |
parent | 0129fe422474d9f259f0a0545fb3bae21536d0c1 (diff) | |
download | libxslt-9ae2f94df1721e002941b40665efb762aefcea1a.tar.gz |
Stop using maxParserDepth XPath limit
This will be removed again from libxml2.
-rw-r--r-- | tests/fuzz/fuzz.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/fuzz/fuzz.c b/tests/fuzz/fuzz.c index f502ca2c..75234ad6 100644 --- a/tests/fuzz/fuzz.c +++ b/tests/fuzz/fuzz.c @@ -183,8 +183,7 @@ xsltFuzzXPathInit(int *argc_p ATTRIBUTE_UNUSED, char ***argv_p, xpctxt = tctxt->xpathCtxt; /* Resource limits to avoid timeouts and call stack overflows */ - xpctxt->maxParserDepth = 15; - xpctxt->maxDepth = 100; + xpctxt->maxDepth = 500; xpctxt->opLimit = 500000; /* Test namespaces used in xpath.xml */ @@ -317,8 +316,7 @@ xsltFuzzXsltInit(int *argc_p ATTRIBUTE_UNUSED, char ***argv_p, static void xsltSetXPathResourceLimits(xmlXPathContextPtr ctxt) { - ctxt->maxParserDepth = 15; - ctxt->maxDepth = 100; + ctxt->maxDepth = 200; ctxt->opLimit = 100000; } |