1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-01 10:06:59 +03:00

fixed a bug in one corner case of attribute parsing. Daniel

* parser.c: fixed a bug in one corner case of attribute parsing.
Daniel
This commit is contained in:
Daniel Veillard
2003-09-11 16:30:26 +00:00
parent 07cb8226c0
commit c6e20e44dd
2 changed files with 5 additions and 1 deletions

View File

@ -7613,7 +7613,7 @@ xmlParseAttValueInternal(xmlParserCtxtPtr ctxt, int *len, int *alloc,
/*
* skip the trailing blanks
*/
while (last[-1] == 0x20) last--;
while ((last[-1] == 0x20) && (last > start)) last--;
while ((in < end) && (*in != limit) &&
((*in == 0x20) || (*in == 0x9) ||
(*in == 0xA) || (*in == 0xD))) {