File ImageMagick-CVE-2018-14436.patch of Package ImageMagick.22732
Index: ImageMagick-7.0.7-34/coders/miff.c
===================================================================
--- ImageMagick-7.0.7-34.orig/coders/miff.c 2018-05-20 17:55:43.000000000 +0200
+++ ImageMagick-7.0.7-34/coders/miff.c 2018-08-07 15:06:19.857372346 +0200
@@ -2428,7 +2428,10 @@ static MagickBooleanType WriteMIFFImage(
switch (quantum_info->depth)
{
default:
+ {
+ colormap=(unsigned char *) RelinquishMagickMemory(colormap);
ThrowWriterException(CorruptImageError,"ImageDepthNotSupported");
+ }
case 32:
{
register unsigned int