Skip to content
Permalink
Browse files

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

  • Loading branch information...
Cristy
Cristy committed Jul 19, 2017
1 parent af2e7e8 commit a8f9c2aabed37cd6a728532d1aed13ae0f3dfd78
Showing with 6 additions and 0 deletions.
  1. +6 −0 coders/txt.c
@@ -580,6 +580,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 a8f9c2a

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