1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

Another variation of overflow in Conditional sections

Which happen after the previous fix to
https://bugzilla.gnome.org/show_bug.cgi?id=756456

But stopping the parser and exiting we didn't pop the intermediary entities
and doing the SKIP there applies on an input which may be too small
This commit is contained in:
Daniel Veillard
2015-10-23 19:02:28 +08:00
parent cf77e60515
commit bd0526e66a

View File

@@ -6915,6 +6915,8 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
"All markup of the conditional section is not in the same entity\n",
NULL, NULL);
}
if ((ctxt-> instate != XML_PARSER_EOF) &&
((ctxt->input->cur + 3) < ctxt->input->end))
SKIP(3);
}
}