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:
committed by
Daniel Veillard
parent
e4d16d7909
commit
cf8f0424db
2
parser.c
2
parser.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user