From: Cristy Date: Sun, 4 Feb 2018 22:56:53 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-23~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efd28c1e7e2c6f6805859b391f579638d8692933;p=imagemagick ... --- diff --git a/coders/ps.c b/coders/ps.c index 6d3ff00d7..3f5f99c6d 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -683,6 +683,8 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception) { SetStringInfoLength(profile,i+1); c=ReadBlobByte(image); + if (c == EOF) + continue; GetStringInfoDatum(profile)[i]=(unsigned char) c; *p++=(char) c; if ((strchr("\n\r%",c) == (char *) NULL) &&