1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-10 08:58:16 +03:00

Revert "Continue to parse entity refs in recovery mode"

This reverts commit 84823b86344fb530790a8787b80abf62715ea885 which
exposed several other, potentially serious bugs.

Fixes #356.
This commit is contained in:
Nick Wellnhofer 2022-03-22 19:10:51 +01:00
parent 83d5a87e37
commit 9684954429

View File

@ -7126,6 +7126,8 @@ xmlParseReference(xmlParserCtxtPtr ctxt) {
*/
ent = xmlParseEntityRef(ctxt);
if (ent == NULL) return;
if (!ctxt->wellFormed)
return;
was_checked = ent->checked;
/* special case of predefined entities */