Commit ab2b9a93 authored by Hugh Davenport's avatar Hugh Davenport Committed by Daniel Veillard
Browse files

Avoid extra processing of MarkupDecl when EOF


One place where ctxt->instate == XML_PARSER_EOF whic was set up
by entity detection issues doesn't get noticed, and even overrided
parent 18b89885
......@@ -6972,6 +6972,14 @@ xmlParseMarkupDecl(xmlParserCtxtPtr ctxt) {
* detect requirement to exit there and act accordingly
* and avoid having instate overriden later on
if (ctxt->instate == XML_PARSER_EOF)
* This is only for internal subset. On external entities,
* the replacement is done before parsing stage
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment