From e0fe9894bff65028bea71df2bf6a4cd63da28c9e Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 5 Apr 2016 09:55:07 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/161 --- coders/icon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coders/icon.c b/coders/icon.c index 6cb5532de..8ae0df783 100644 --- a/coders/icon.c +++ b/coders/icon.c @@ -664,7 +664,8 @@ static Image *ReadICONImage(const ImageInfo *image_info, default: ThrowReaderException(CorruptImageError,"ImproperImageHeader"); } - if (image_info->ping == MagickFalse) + if ((image_info->ping == MagickFalse) && + (icon_info.bits_per_pixel <= 16)) (void) SyncImage(image,exception); if (icon_info.bits_per_pixel != 32) { -- 2.40.0