Commit 90954210d for imagemagick.org
commit 90954210d7d81bb2e6353ef1bd3dfc94e19e4424
Author: Cristy <urban-warrior@imagemagick.org>
Date: Mon Feb 2 20:08:48 2026 -0500
https://github.com/ImageMagick/ImageMagick/issues/8553
diff --git a/coders/meta.c b/coders/meta.c
index 4e758518c..73cfdc2c8 100644
--- a/coders/meta.c
+++ b/coders/meta.c
@@ -809,7 +809,7 @@ static ssize_t parse8BIMW(Image *ifile, Image *ofile)
n=0;
outputlen += len;
- while (len--)
+ while (len-- > 0)
(void) WriteBlobByte(ofile,(unsigned char) token[n++]);
if (outputlen & 1)
@@ -843,7 +843,7 @@ static ssize_t parse8BIMW(Image *ifile, Image *ofile)
outputlen += 5;
n=0;
outputlen += len;
- while (len--)
+ while (len-- > 0)
(void) WriteBlobByte(ofile,(unsigned char) token[n++]);
}
}