]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/838
authorCristy <urban-warrior@imagemagick.org>
Tue, 17 Oct 2017 12:49:23 +0000 (08:49 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 17 Oct 2017 12:49:23 +0000 (08:49 -0400)
coders/gif.c

index 8b19da3e240ab0e68968ed6411afe9499cdf6f53..384215d5062aca431d17eb0fe40bc6c03d857cc2 100644 (file)
@@ -1068,7 +1068,7 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)
               Read graphics control extension.
             */
             while (ReadBlobBlock(image,buffer) != 0) ;
-            dispose=(size_t) buffer[0] >> 2;
+            dispose=(size_t) ((buffer[0] >> 2) & 0x07);
             delay=((size_t) buffer[2] << 8) | buffer[1];
             if ((ssize_t) (buffer[0] & 0x01) == 0x01)
               opacity=(ssize_t) buffer[3];