xml reader BUGFIX unknown character infinite loop fix
diff --git a/src/xml.c b/src/xml.c
index 77e313e..936d168 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -1091,7 +1091,7 @@
/* XMLDecl or PI - ignore it */
c += 2;
if (parse_ignore(c, "?>", &len)) {
- LOGVAL(VE_XML_MISS, lineno, "close sequence", "?>");
+ LOGVAL(VE_XML_MISS, lineno, "closing sequence", "?>");
return NULL;
}
c += len;
@@ -1099,7 +1099,7 @@
/* Comment - ignore it */
c += 2;
if (parse_ignore(c, "-->", &len)) {
- LOGVAL(VE_XML_MISS, lineno, "close sequence", "-->");
+ LOGVAL(VE_XML_MISS, lineno, "closing sequence", "-->");
return NULL;
}
c += len;
@@ -1113,6 +1113,9 @@
* format
*/
break;
+ } else {
+ LOGVAL(VE_XML_INCHAR, lineno, c);
+ return NULL;
}
}