[libxml2] Revert "Continue to parse entity refs in recovery mode"
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [libxml2] Revert "Continue to parse entity refs in recovery mode"
- Date: Tue, 22 Mar 2022 18:15:40 +0000 (UTC)
commit 968495442964f3ea72499dfbdba9e2fa9d77f9b7
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Tue Mar 22 19:10:51 2022 +0100
    Revert "Continue to parse entity refs in recovery mode"
    
    This reverts commit 84823b86344fb530790a8787b80abf62715ea885 which
    exposed several other, potentially serious bugs.
    
    Fixes #356.
 parser.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/parser.c b/parser.c
index c3068cad..6531c9f8 100644
--- a/parser.c
+++ b/parser.c
@@ -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 */
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]