From efd28c1e7e2c6f6805859b391f579638d8692933 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 4 Feb 2018 17:56:53 -0500 Subject: [PATCH] ... --- coders/ps.c | 2 ++ 1 file changed, 2 insertions(+) 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) && -- 2.40.0