1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-23 01:52:48 +03:00

SAX2: Check return value of xmlPushInput

Fix null deref in case of malloc failure.
This commit is contained in:
Nick Wellnhofer
2024-07-06 15:15:57 +02:00
parent 38195cf596
commit 1e5375c1b4
2 changed files with 7 additions and 10 deletions

View File

@@ -2564,7 +2564,8 @@ xmlPushInput(xmlParserCtxtPtr ctxt, xmlParserInputPtr input) {
return(-1);
}
ret = inputPush(ctxt, input);
GROW;
if (ret >= 0)
GROW;
return(ret);
}