]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/683
authorCristy <urban-warrior@imagemagick.org>
Sat, 19 Aug 2017 01:39:03 +0000 (21:39 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 19 Aug 2017 01:39:03 +0000 (21:39 -0400)
coders/icon.c

index 67883b166f962862c917951a957dc650aa60de39..3de0ad3b8a9f272f870e29e547982b781652a499 100644 (file)
@@ -411,6 +411,8 @@ static Image *ReadICONImage(const ImageInfo *image_info,
         if (image->rows == 0)
           image->rows=256;
         image->depth=icon_info.bits_per_pixel;
+        if (image->depth > 16)
+          image->depth=8;
         if (image->debug != MagickFalse)
           {
             (void) LogMagickEvent(CoderEvent,GetMagickModule(),