From d288ccb7b3e2b6602d1c9b7650afd0afe43f25d6 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 22 Apr 2018 10:48:28 +0200 Subject: [PATCH] Fixed reading out of bounds (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7924). --- coders/psd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/psd.c b/coders/psd.c index dde93c7cd..1dcac026d 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -829,7 +829,7 @@ static StringInfo *ParseImageResourceBlocks(Image *image, } case 0x0421: { - if ((count > 3) && (*(p+4) == 0)) + if ((count > 4) && (*(p+4) == 0)) *has_merged_image=MagickFalse; p+=count; break; -- 2.40.0