1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-31 06:50:06 +03:00

malloc-fail: Fix out-of-bounds read in xmlGROW

Short-lived regression from 56cc2211.
This commit is contained in:
Nick Wellnhofer 2023-03-12 14:43:01 +01:00
parent bd6fa2c1d5
commit 207ebdfd2a

View File

@ -2110,10 +2110,10 @@ static void xmlGROW (xmlParserCtxtPtr ctxt) {
in->base = xmlBufContent(buf->buffer);
if (in->base == NULL) {
xmlErrMemory(ctxt, NULL);
in->base = BAD_CAST "";
in->cur = in->base;
in->end = in->base;
xmlErrMemory(ctxt, NULL);
return;
}
in->cur = in->base + curBase;