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

Fix potential out of bound access

This commit is contained in:
Daniel Veillard 2012-10-29 10:39:55 +08:00
parent 4ea74a440d
commit 6a36fbe3b3

View File

@ -4076,7 +4076,7 @@ xmlParseAttValueComplex(xmlParserCtxtPtr ctxt, int *attlen, int normalize) {
goto error;
if ((in_space) && (normalize)) {
while (buf[len - 1] == 0x20) len--;
while ((len > 0) && (buf[len - 1] == 0x20)) len--;
}
buf[len] = 0;
if (RAW == '<') {