]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 21 Jan 2015 20:38:39 +0000 (20:38 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 21 Jan 2015 20:38:39 +0000 (20:38 +0000)
coders/sun.c

index b5fed9c2b0924774e0281d7c4af5a67623f3d20e..db5d7bb538b3dc44ff6f8c944a62beccf57991be 100644 (file)
@@ -410,7 +410,7 @@ static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception)
       ThrowReaderException(ResourceLimitError,"ImproperImageHeader");
     number_pixels=(MagickSizeType) (image->columns*image->rows);
     if ((sun_info.type != RT_ENCODED) && 
-        ((number_pixels*sun_info.depth) > (8*sun_info.length)))
+        ((number_pixels*sun_info.depth) > (8UL*sun_info.length)))
       ThrowReaderException(CorruptImageError,"ImproperImageHeader");
     bytes_per_line=sun_info.width*sun_info.depth;
     sun_data=(unsigned char *) AcquireQuantumMemory((size_t) MagickMax(