From 6d7e74bad5ee13b20f12abe4d8811c5776e5dced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Mon, 5 Sep 2016 22:39:17 +0000 Subject: [PATCH] [GB.XML] * BUG: Fix the previous fix in r7894. git-svn-id: svn://localhost/gambas/trunk@7895 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.xml/src/parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gb.xml/src/parser.cpp b/gb.xml/src/parser.cpp index 1b3d6e029..bd864cc58 100644 --- a/gb.xml/src/parser.cpp +++ b/gb.xml/src/parser.cpp @@ -163,7 +163,9 @@ Node** parseXML(char const *data, const size_t lendata, size_t *nodeCount) throw 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;