]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/96
authorCristy <urban-warrior@imagemagick.org>
Mon, 25 Jan 2016 00:10:07 +0000 (19:10 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 25 Jan 2016 00:10:07 +0000 (19:10 -0500)
coders/meta.c

index 53fde4c0d0d65ce0e53167a565b3b40760d32a95..96ad6c8f19d53cd89ea8bec5c4c481d78ae72efc 100644 (file)
@@ -461,7 +461,7 @@ static ssize_t parse8BIM(Image *ifile, Image *ofile)
 
                     next=0;
                     outputlen += len;
-                    while (len--)
+                    while (len-- > 0)
                       (void) WriteBlobByte(ofile,(unsigned char) token[next++]);
 
                     if (outputlen & 1)
@@ -492,7 +492,7 @@ static ssize_t parse8BIM(Image *ifile, Image *ofile)
                     outputlen += 5;
                     next=0;
                     outputlen += len;
-                    while (len--)
+                    while (len-- > 0)
                       (void) WriteBlobByte(ofile,(unsigned char) token[next++]);
                   }
               }