* BUG: XML parser does not crash anymore when the final '>' of a closing tag is missing.


git-svn-id: svn://localhost/gambas/trunk@7894 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2016-09-05 19:34:09 +00:00
parent c735544b9b
commit abb3ca308f

View file

@ -162,6 +162,8 @@ Node** parseXML(char const *data, const size_t lendata, size_t *nodeCount) throw
pos += curElement->lenTagName;
curElement = (Element*)(curElement->parent);
tag = (char*)memchr(pos, '>', endData - pos);//On cherche la fin du tag
if (!tag)
THROW(XMLParseException_New("Never-ending tag", data, lendata, pos - 1));
pos = tag + 1;//On avance à la fin du tag
continue;