From: Cristy Date: Sat, 19 Aug 2017 01:39:03 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/683 X-Git-Tag: 7.0.6-9~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51d73737918c47264e541673494099680bc08a0a;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/683 --- diff --git a/coders/icon.c b/coders/icon.c index 67883b166..3de0ad3b8 100644 --- a/coders/icon.c +++ b/coders/icon.c @@ -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(),