]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1191
authorCristy <urban-warrior@imagemagick.org>
Wed, 4 Jul 2018 18:21:29 +0000 (14:21 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 4 Jul 2018 18:21:29 +0000 (14:21 -0400)
coders/miff.c

index 2dd48086169075f5a18404d151fa9b755b8c1fef..8ba78ca6e742eebf3f265cc2c39984733521fe88 100644 (file)
@@ -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