mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-28 17:47:00 +03:00
Avoid extra processing of MarkupDecl when EOF
For https://bugzilla.gnome.org/show_bug.cgi?id=756263 One place where ctxt->instate == XML_PARSER_EOF whic was set up by entity detection issues doesn't get noticed, and even overrided
This commit is contained in:
parent
18b8988511
commit
ab2b9a93ff
8
parser.c
8
parser.c
@ -6972,6 +6972,14 @@ xmlParseMarkupDecl(xmlParserCtxtPtr ctxt) {
|
||||
xmlParsePI(ctxt);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* detect requirement to exit there and act accordingly
|
||||
* and avoid having instate overriden later on
|
||||
*/
|
||||
if (ctxt->instate == XML_PARSER_EOF)
|
||||
return;
|
||||
|
||||
/*
|
||||
* This is only for internal subset. On external entities,
|
||||
* the replacement is done before parsing stage
|
||||
|
Loading…
x
Reference in New Issue
Block a user