[libxml2] Another fix for conditional sections at end of document



commit 9737ec071786c29788b9aa0971156f9e19a9c6a0
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Tue Oct 29 16:19:37 2019 +0100

    Another fix for conditional sections at end of document
    
    The previous fix introduced an uninitialized read.

 parser.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/parser.c b/parser.c
index 43d0c688..d1c31963 100644
--- a/parser.c
+++ b/parser.c
@@ -6731,6 +6731,7 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
 
                if (RAW == 0) {
                    xmlFatalErr(ctxt, XML_ERR_CONDSEC_NOT_FINISHED, NULL);
+                    goto error;
                }
                 if (ctxt->input->id != id) {
                     xmlFatalErrMsg(ctxt, XML_ERR_ENTITY_BOUNDARY,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]