Skip to content

Commit 9d2c692

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/8553
1 parent 0fb76f7 commit 9d2c692

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

coders/meta.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ static ssize_t parse8BIMW(Image *ifile, Image *ofile)
824824

825825
next=0;
826826
outputlen += len;
827-
while (len--)
827+
while (len-- > 0)
828828
(void) WriteBlobByte(ofile,(unsigned char) token[next++]);
829829

830830
if (outputlen & 1)
@@ -858,7 +858,7 @@ static ssize_t parse8BIMW(Image *ifile, Image *ofile)
858858
outputlen += 5;
859859
next=0;
860860
outputlen += len;
861-
while (len--)
861+
while (len-- > 0)
862862
(void) WriteBlobByte(ofile,(unsigned char) token[next++]);
863863
}
864864
}

0 commit comments

Comments
 (0)