[GB.XML]
* 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:
parent
c735544b9b
commit
abb3ca308f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue