From d201bc5f4ae736c105b8693dc56a110bd0809234 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 24 Mar 2018 15:55:47 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7107 --- coders/heic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/heic.c b/coders/heic.c index 593251ca7..79262f311 100644 --- a/coders/heic.c +++ b/coders/heic.c @@ -488,7 +488,7 @@ static MagickBooleanType ParseInfeAtom(Image *image, DataBuffer *db, /* item indicies starts from 1 */ - if (id > (ssize_t) ctx->idsCount) { + if (id >= (ssize_t) ctx->idsCount) { ThrowAndReturn("item id is incorrect"); } -- 2.40.0