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:
parent
3dcde736d0
commit
3a1526a5f7
2
xpath.c
2
xpath.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user