xzyang / rpms / libxml2

Forked from rpms/libxml2 3 years ago
Clone

Blame SOURCES/libxml2-Heap-based-buffer-overread-in-xmlNextChar.patch

1c8959
commit 498a54c26abd0fbd6f7d02b6b6f0275b4390d821
1c8959
Author: Daniel Veillard <veillard@redhat.com>
1c8959
Date:   Tue Feb 9 12:55:29 2016 +0100
1c8959
1c8959
    Heap-based buffer overread in xmlNextChar
1c8959
    
1c8959
    For https://bugzilla.gnome.org/show_bug.cgi?id=759671
1c8959
    
1c8959
    when the end of the internal subset isn't properly detected
1c8959
    xmlParseInternalSubset should just return instead of trying
1c8959
    to process input further.
1c8959
1c8959
diff --git a/parser.c b/parser.c
1c8959
index f4fc310..b1215ca 100644
1c8959
--- a/parser.c
1c8959
+++ b/parser.c
1c8959
@@ -8448,6 +8448,7 @@ xmlParseInternalSubset(xmlParserCtxtPtr ctxt) {
1c8959
      */
1c8959
     if (RAW != '>') {
1c8959
 	xmlFatalErr(ctxt, XML_ERR_DOCTYPE_NOT_FINISHED, NULL);
1c8959
+	return;
1c8959
     }
1c8959
     NEXT;
1c8959
 }