From: dirk Date: Fri, 15 Jan 2016 21:29:36 +0000 (+0100) Subject: Fixed check for bit depth. X-Git-Tag: 7.0.1-0~326 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de9d231ac0455ac26a495f4e368ed6f28c6cdbe1;p=imagemagick Fixed check for bit depth. --- diff --git a/coders/sun.c b/coders/sun.c index 4158d4c61..dc4204cec 100644 --- a/coders/sun.c +++ b/coders/sun.c @@ -314,7 +314,7 @@ static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception) if ((sun_info.maptype == RMT_NONE) && (sun_info.maplength != 0)) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); if ((sun_info.depth != 1) && (sun_info.depth != 8) && - (sun_info.depth != 16) && (sun_info.depth != 32)) + (sun_info.depth != 24) && (sun_info.depth != 32)) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); if ((sun_info.maptype != RMT_NONE) && (sun_info.maptype != RMT_EQUAL_RGB) && (sun_info.maptype != RMT_RAW))