File libxml2-2.9.4-CVE-2017-8872.patch of Package libxml2.6602

diff -ur libxml2-2.9.4/parser.c ../../libxml2-2.9.4/parser.c
--- libxml2-2.9.4/parser.c	2016-05-23 09:25:25.000000000 +0200
+++ ../../libxml2-2.9.4/parser.c	2017-07-13 17:21:14.142974561 +0200
@@ -12714,6 +12750,10 @@
 	}
 	ctxt->input->cur = BAD_CAST"";
 	ctxt->input->base = ctxt->input->cur;
+	if (ctxt->input->buf) {
+		xmlBufEmpty (ctxt->input->buf->buffer);
+	} else
+		ctxt->input->length = 0;
     }
 }