From: Cristy Date: Sun, 21 Jan 2018 14:10:47 +0000 (-0500) Subject: Revert XML parser patch X-Git-Tag: 7.0.7-22~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0757000bbefbb74da32344eff87f04d71c5d37a4;p=imagemagick Revert XML parser patch Credit OSS-Fuzz --- 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,