commit 4b44442d7b1b36820ce4470a6cfa46635deb309e
Author: dxbjavid <dxbjavid@gmail.com>
Date: Mon May 25 17:13:00 2026 +0530
reject cineon files with zero columns or rows (#8754)
diff --git a/coders/cin.c b/coders/cin.c
index 069174a99..29fdf4abc 100644
--- a/coders/cin.c
+++ b/coders/cin.c
@@ -725,6 +725,8 @@ static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception)
image->depth=cin.image.channel[0].bits_per_pixel;
image->columns=cin.image.channel[0].pixels_per_line;
image->rows=cin.image.channel[0].lines_per_image;
+ if ((image->columns == 0) || (image->rows == 0))
+ ThrowReaderException(CorruptImageError,"ImproperImageHeader");
if (image_info->ping != MagickFalse)
{
(void) CloseBlob(image);