]> granicus.if.org Git - imagemagick/commitdiff
Fixed check for bit depth.
authordirk <dirk@git.imagemagick.org>
Fri, 15 Jan 2016 21:29:36 +0000 (22:29 +0100)
committerdirk <dirk@git.imagemagick.org>
Fri, 15 Jan 2016 21:29:36 +0000 (22:29 +0100)
coders/sun.c

index 4158d4c617ea87fc710375037a62e359fa0f0a1a..dc4204cec7567c7a0573dd67a17cf814821595c2 100644 (file)
@@ -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))