Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/4452
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 13, 2021
1 parent 7a608d6 commit b4ece92
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion coders/ept.c
Expand Up @@ -249,7 +249,12 @@ static Image *ReadEPTImage(const ImageInfo *image_info,ExceptionInfo *exception)
postscript_data=ReadBlobStream(image,ept_info.postscript_length,
ept_info.postscript,&count);
if (count != (ssize_t) (ept_info.postscript_length))
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
{
ept_info.tiff=(unsigned char *) RelinquishMagickMemory(ept_info.tiff);
ept_info.postscript=(unsigned char *) RelinquishMagickMemory(
ept_info.postscript);
ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
}
(void) CloseBlob(image);
image=DestroyImage(image);
read_info=CloneImageInfo(image_info);
Expand Down

0 comments on commit b4ece92

Please sign in to comment.