From fa372907c0287f2261948abce596edab3dbb27a1 Mon Sep 17 00:00:00 2001 From: Packit Date: Aug 25 2020 09:22:20 +0000 Subject: Apply patch libxml2-2.9.7-CVE-2020-7595.patch patch_name: libxml2-2.9.7-CVE-2020-7595.patch location_in_specfile: 9 present_in_specfile: true --- diff --git a/parser.c b/parser.c index deb0856..af1ec86 100644 --- a/parser.c +++ b/parser.c @@ -2637,7 +2637,8 @@ xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len, else c = 0; while ((c != 0) && (c != end) && /* non input consuming loop */ - (c != end2) && (c != end3)) { + (c != end2) && (c != end3) && + (ctxt->instate != XML_PARSER_EOF)) { if (c == 0) break; if ((c == '&') && (str[1] == '#')) {