mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Stop using maxParserDepth in xpath.c
Only use a single maxDepth value.
This commit is contained in:
@@ -34,8 +34,7 @@ LLVMFuzzerTestOneInput(const char *data, size_t size) {
|
||||
xmlXPathContextPtr xpctxt = xmlXPathNewContext(doc);
|
||||
|
||||
/* Resource limits to avoid timeouts and call stack overflows */
|
||||
xpctxt->maxParserDepth = 15;
|
||||
xpctxt->maxDepth = 100;
|
||||
xpctxt->maxDepth = 500;
|
||||
xpctxt->opLimit = 500000;
|
||||
|
||||
xmlXPathFreeObject(xmlXPtrEval(BAD_CAST expr, xpctxt));
|
||||
|
||||
Reference in New Issue
Block a user