From 183007db6ffb1d1ab37b867689b11f376bce95a4 Mon Sep 17 00:00:00 2001 From: Packit Date: Aug 25 2020 09:22:20 +0000 Subject: Apply patch libxml2-CVE-2019-19956.patch patch_name: libxml2-CVE-2019-19956.patch location_in_specfile: 8 present_in_specfile: true --- diff --git a/parser.c b/parser.c index 5bc9032..deb0856 100644 --- a/parser.c +++ b/parser.c @@ -13909,7 +13909,8 @@ xmlParseBalancedChunkMemoryRecover(xmlDocPtr doc, xmlSAXHandlerPtr sax, xmlFreeParserCtxt(ctxt); newDoc->intSubset = NULL; newDoc->extSubset = NULL; - newDoc->oldNs = NULL; + if(doc != NULL) + newDoc->oldNs = NULL; xmlFreeDoc(newDoc); return(ret);