]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 28 Oct 2017 18:20:46 +0000 (14:20 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 28 Oct 2017 18:20:46 +0000 (14:20 -0400)
coders/png.c

index 9d95b07199b26884a7d4b39a5d8a26aaafc92328..6609030f0806ab2c502a3066635c9f292f668a7a 100644 (file)
@@ -4475,7 +4475,7 @@ static Image *ReadOneJNGImage(MngInfo *mng_info,
 
     type[0]='\0';
     (void) ConcatenateMagickString(type,"errr",MagickPathExtent);
-    length=ReadBlobMSBLong(image);
+    length=(size_t) ReadBlobMSBLong(image);
     count=(unsigned int) ReadBlob(image,4,(unsigned char *) type);
 
     if (logging != MagickFalse)
@@ -5380,7 +5380,7 @@ static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info,
         */
         type[0]='\0';
         (void) ConcatenateMagickString(type,"errr",MagickPathExtent);
-        length=ReadBlobMSBLong(image);
+        length=(size_t) ReadBlobMSBLong(image);
         count=(size_t) ReadBlob(image,4,(unsigned char *) type);
 
         if (logging != MagickFalse)