commit | e0fe9894bff65028bea71df2bf6a4cd63da28c9e | [log] [tgz] |
---|---|---|
author | Cristy <urban-warrior@imagemagick.org> | Tue Apr 05 09:55:07 2016 -0400 |
committer | Cristy <urban-warrior@imagemagick.org> | Tue Apr 05 09:55:07 2016 -0400 |
tree | 7680282e9d94fdc8b4ffbc4a72de8164ecace749 | |
parent | fcf5a78f9ee1c00dabd419153be61b3d22cd59c0 [diff] |
https://github.com/ImageMagick/ImageMagick/issues/161
diff --git a/coders/icon.c b/coders/icon.c index 6cb5532..8ae0df7 100644 --- a/coders/icon.c +++ b/coders/icon.c
@@ -664,7 +664,8 @@ 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) {