1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

xinclude: Set XPath context doc

Regressed in commit 78eab7a1.
This commit is contained in:
Nick Wellnhofer 2024-06-17 14:15:49 +02:00
parent 6deebe036a
commit 3c7c831c7c

View File

@ -1215,6 +1215,8 @@ loaded:
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
ctxt->xpctxt->opLimit = 100000;
#endif
} else {
ctxt->xpctxt->doc = doc;
}
xptr = xmlXPtrEval(fragment, ctxt->xpctxt);
if (ctxt->xpctxt->lastError.code != XML_ERR_OK) {