From de9d231ac0455ac26a495f4e368ed6f28c6cdbe1 Mon Sep 17 00:00:00 2001 From: dirk Date: Fri, 15 Jan 2016 22:29:36 +0100 Subject: [PATCH] Fixed check for bit depth. --- coders/sun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.40.0