1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-04-01 10:50:08 +03:00

xpath: Don't raise OOM error on long names

Short-lived regression.
This commit is contained in:
Nick Wellnhofer 2025-02-10 19:32:32 +01:00
parent 3dcde736d0
commit 3a1526a5f7

View File

@ -8672,7 +8672,7 @@ xmlXPathParseNameComplex(xmlXPathParserContextPtr ctxt, int qualified) {
newSize = xmlGrowCapacity(max, 1, 1, XML_MAX_NAME_LENGTH);
if (newSize < 0) {
xmlFree(buffer);
xmlXPathPErrMemory(ctxt);
xmlXPathErr(ctxt, XPATH_EXPR_ERROR);
return(NULL);
}
tmp = xmlRealloc(buffer, newSize);