From 668d6a970553a94b0a2e378afda1d37abac94b5c Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 16 Jul 2019 21:07:11 +0200 Subject: [PATCH] Corrected check. --- coders/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/ps.c b/coders/ps.c index 46a73dd06..2cdb6f6b6 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -417,7 +417,7 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image, continue; ps_info->photoshop_profile=AcquireStringInfo((size_t) extent); q=GetStringInfoDatum(ps_info->photoshop_profile); - while (extent > 0) + while (extent > 1) { c=ProfileInteger(&buffer,hex_digits); if (c == EOF) -- 2.40.0