File ImageMagick-CVE-2019-11470.patch of Package ImageMagick.11105

diff --git a/coders/cin.c b/coders/cin.c
index 6b9b4e50b1..72d6138fd9 100644
--- a/coders/cin.c
+++ b/coders/cin.c
@@ -726,6 +726,8 @@ static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception)
       (void) CloseBlob(image);
       return(image);
     }
+  if (((MagickSizeType) image->columns*image->rows) > GetBlobSize(image))
+    ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
   for ( ; offset < (MagickOffsetType) cin.file.image_offset; offset++)
   {
     int

openSUSE Build Service is sponsored by