mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
fixed bug #78858
This commit is contained in:
8
xpath.c
8
xpath.c
@ -10220,15 +10220,17 @@ xmlXPathRunEval(xmlXPathParserContextPtr ctxt) {
|
||||
xmlMalloc(10 * sizeof(xmlXPathObjectPtr));
|
||||
if (ctxt->valueTab == NULL) {
|
||||
xmlFree(ctxt);
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"xmlXPathRunEval: out of memory\n");
|
||||
return;
|
||||
}
|
||||
ctxt->valueNr = 0;
|
||||
ctxt->valueMax = 10;
|
||||
ctxt->value = NULL;
|
||||
}
|
||||
comp = ctxt->comp;
|
||||
if(comp->last < 0) {
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"xmlXPathRunEval: last is less than zero\n");
|
||||
return;
|
||||
}
|
||||
xmlXPathCompOpEval(ctxt, &comp->steps[comp->last]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user