File ImageMagick-CVE-2018-14436.patch of Package ImageMagick.8212

Index: ImageMagick-6.8.8-1/coders/miff.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/miff.c	2018-08-07 15:14:37.483736316 +0200
+++ ImageMagick-6.8.8-1/coders/miff.c	2018-08-07 15:14:52.843809285 +0200
@@ -2354,7 +2354,10 @@ static MagickBooleanType WriteMIFFImage(
           switch (quantum_info->depth)
           {
             default:
+            {
+              colormap=(unsigned char *) RelinquishMagickMemory(colormap);
               ThrowWriterException(CorruptImageError,"ImageDepthNotSupported");
+            }
             case 32:
             {
               register unsigned int