| Index: third_party/libxml/src/parser.c
|
| diff --git a/third_party/libxml/src/parser.c b/third_party/libxml/src/parser.c
|
| index c181071a531c547ccb0fea7247e859eab84e6c2f..0b803550b314655082d9ce582cd947419696b1e2 100644
|
| --- a/third_party/libxml/src/parser.c
|
| +++ b/third_party/libxml/src/parser.c
|
| @@ -3800,7 +3800,7 @@ xmlParseAttValueComplex(xmlParserCtxtPtr ctxt, int *attlen, int normalize) {
|
| c = CUR_CHAR(l);
|
| }
|
| if ((in_space) && (normalize)) {
|
| - while (buf[len - 1] == 0x20) len--;
|
| + while ((len > 0) && (buf[len - 1] == 0x20)) len--;
|
| }
|
| buf[len] = 0;
|
| if (RAW == '<') {
|
|
|