]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/161
authorCristy <urban-warrior@imagemagick.org>
Tue, 5 Apr 2016 13:55:07 +0000 (09:55 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 5 Apr 2016 13:55:07 +0000 (09:55 -0400)
coders/icon.c

index 6cb5532def8e2b5b1ec8ebeb856801b63ff81be8..8ae0df783d46d4179f09639abc6abfa3a42a76d4 100644 (file)
@@ -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)
           {