commit | cf8f0424db45c43ecda812b7c238ece5e2398107 | [log] [tgz] |
---|---|---|
author | Dan Winship <danw@gnome.org> | Fri Dec 21 11:13:31 2012 +0800 |
committer | Daniel Veillard <veillard@redhat.com> | Fri Dec 21 11:13:31 2012 +0800 |
tree | 41f107650bc06e3676cfdc1c7ce72679334244e7 | |
parent | e4d16d7909d5c9bbff5dc45a19bb75c3269b4f70 [diff] |
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
diff --git a/parser.c b/parser.c index c7802cf..e719c9f 100644 --- a/parser.c +++ b/parser.c
@@ -12042,7 +12042,7 @@ } 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); }