1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

Fix an error in the progressive DTD parsing code

For https://bugzilla.gnome.org/show_bug.cgi?id=689958
We were looking for the wrong character in the input stream
This commit is contained in:
Dan Winship
2012-12-21 11:13:31 +08:00
committed by Daniel Veillard
parent e4d16d7909
commit cf8f0424db

View File

@@ -12042,7 +12042,7 @@ xmlParseCheckTransition(xmlParserCtxtPtr ctxt, const char *chunk, int size) {
}
if ((ctxt->progressive == XML_PARSER_DTD) ||
(ctxt->instate == XML_PARSER_DTD)) {
if (memchr(chunk, ']', size) != NULL)
if (memchr(chunk, '>', size) != NULL)
return(1);
return(0);
}