From: Cristy Date: Thu, 14 Sep 2017 08:51:49 +0000 (-0400) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32407 X-Git-Tag: 7.0.7-3~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86bd50663dd74d48a0540174e8ae7267f9b96bb5;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32407 --- diff --git a/coders/gif.c b/coders/gif.c index ab2d76e8d..6202f5e16 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1255,7 +1255,7 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) image->colors=BitSet((int) flag,0x80) == 0 ? global_colors : one << ((size_t) (flag & 0x07)+1); if (opacity >= (ssize_t) image->colors) - opacity=(-1); + image->colors=opacity+1; image->page.width=page.width; image->page.height=page.height; image->page.y=page.y;