From 4b352c0be410ad900469a079e389178f878aded8 Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 4 Jul 2018 14:21:29 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1191 --- coders/miff.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coders/miff.c b/coders/miff.c index 2dd480861..8ba78ca6e 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -1221,8 +1221,11 @@ static Image *ReadMIFFImage(const ImageInfo *image_info, switch (image->depth) { default: + { colormap=(unsigned char *) RelinquishMagickMemory(colormap); ThrowMIFFException(CorruptImageError,"ImageDepthNotSupported"); + break; + } case 8: { unsigned char -- 2.40.0