Commit 5ee634039 for imagemagick.org

commit 5ee634039aa6bb11d23235ab80b5e5607d263b5c
Author: Javid Khan <dxbjavid@gmail.com>
Date:   Mon Jun 8 11:39:46 2026 +0530

    reject cineon files with an invalid bits per pixel (#8781)

    * reject cineon files with an invalid bits per pixel

    * allow 64-bit depth in cineon bits per pixel check

    ---------

    Co-authored-by: Dirk Lemstra <dirk@lemstra.org>

diff --git a/coders/cin.c b/coders/cin.c
index 069174a99..bf819dc9c 100644
--- a/coders/cin.c
+++ b/coders/cin.c
@@ -723,6 +723,8 @@ static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception)
         }
     }
   image->depth=cin.image.channel[0].bits_per_pixel;
+  if ((image->depth == 0) || (image->depth > 64))
+    ThrowReaderException(CorruptImageError,"ImproperImageHeader");
   image->columns=cin.image.channel[0].pixels_per_line;
   image->rows=cin.image.channel[0].lines_per_image;
   if (image_info->ping != MagickFalse)