From 0757000bbefbb74da32344eff87f04d71c5d37a4 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 21 Jan 2018 09:10:47 -0500 Subject: [PATCH] Revert XML parser patch Credit OSS-Fuzz --- MagickCore/xml-tree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/MagickCore/xml-tree.c b/MagickCore/xml-tree.c index 989a520e8..bab8f7c12 100644 --- a/MagickCore/xml-tree.c +++ b/MagickCore/xml-tree.c @@ -2307,8 +2307,6 @@ MagickExport XMLTreeInfo *NewXMLTree(const char *xml,ExceptionInfo *exception) utf8=DestroyString(utf8); if (root->node == (XMLTreeInfo *) NULL) return(&root->root); - if (l != 0) - (void) DestroyXMLTreeAttributes(attributes); if (root->node->tag == (char *) NULL) { (void) ThrowMagickException(exception,GetMagickModule(),OptionWarning, -- 2.40.0