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:
parent
bd6fa2c1d5
commit
207ebdfd2a
2
parser.c
2
parser.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user