From a72c86cb454be581f1a200c4ebe9728079a376ba Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 9 Feb 2019 21:22:47 -0500 Subject: [PATCH] ... --- coders/cin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/cin.c b/coders/cin.c index 72d6138fd..c1276505f 100644 --- a/coders/cin.c +++ b/coders/cin.c @@ -726,7 +726,7 @@ static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception) (void) CloseBlob(image); return(image); } - if (((MagickSizeType) image->columns*image->rows) > GetBlobSize(image)) + if (((MagickSizeType) image->columns*image->rows/8) > GetBlobSize(image)) ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile"); for ( ; offset < (MagickOffsetType) cin.file.image_offset; offset++) { -- 2.40.0