Skip to content
Permalink
Browse files

https://github.com//issues/591

  • Loading branch information...
Cristy
Cristy committed Jul 19, 2017
1 parent cd494bc commit 83e0f8ffd7eeb7661b0ff83257da23d24ca7f078
Showing with 6 additions and 0 deletions.
  1. +6 −0 coders/txt.c
@@ -563,6 +563,12 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)
break;
}
}
if (EOFBlob(image) != MagickFalse)
{
ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
image->filename);
break;
}
(void) ReadBlobString(image,text);
if (LocaleNCompare((char *) text,MagickID,strlen(MagickID)) == 0)
{

0 comments on commit 83e0f8f

Please sign in to comment.
You can’t perform that action at this time.