]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 28 May 2014 14:22:43 +0000 (14:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 28 May 2014 14:22:43 +0000 (14:22 +0000)
coders/png.c

index 43c62cbdcd7d90e24fd19c0e6e425cec16a8479c..70b159d7279953ac9d3c75f4db0b1942a986592a 100644 (file)
@@ -12789,7 +12789,7 @@ static MagickBooleanType WriteOneJNGImage(MngInfo *mng_info,
           p=blob+8;
           for (i=8; i<(ssize_t) length; i+=len+12)
           {
-            len=(*p<<24)|((*(p+1))<<16)|((*(p+2))<<8)|(*(p+3));
+            len=(size_t) (*p<<24)|((*(p+1))<<16)|((*(p+2))<<8)|(*(p+3));
             p+=4;
 
             if (*(p)==73 && *(p+1)==68 && *(p+2)==65 && *(p+3)==84) /* IDAT */