Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/4988
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 26, 2022
1 parent 004fc5d commit ca3654e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/cin.c
Expand Up @@ -451,6 +451,8 @@ static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception)
image->endian=(magick[0] == 0x80) && (magick[1] == 0x2a) &&
(magick[2] == 0x5f) && (magick[3] == 0xd7) ? MSBEndian : LSBEndian;
cin.file.image_offset=ReadBlobLong(image);
if (cin.file.image_offset < 712)
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
offset+=4;
cin.file.generic_length=ReadBlobLong(image);
offset+=4;
Expand Down

0 comments on commit ca3654e

Please sign in to comment.