From 1da4e1e14ae6e76fd624861e00e2c2dea53818c6 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 30 Dec 2018 10:51:34 -0500 Subject: [PATCH] ... --- coders/gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/gif.c b/coders/gif.c index 4596c4cc9..d62ba437f 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1096,7 +1096,7 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) if (count == 0) break; buffer[count]='\0'; - if ((ssize_t) (count+offset+MagickPathExtent) >= (ssize_t) extent) + if (((ssize_t) count+offset+MagickPathExtent) >= (ssize_t) extent) { extent<<=1; comments=(char *) ResizeQuantumMemory(comments,extent+ -- 2.40.0