Commit 9afe96cc3 for imagemagick.org
commit 9afe96cc325da1e4349fbd7418675af2f8708c10
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Jan 31 12:59:33 2026 -0500
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-72hf-fj62-w6j4
diff --git a/coders/ftxt.c b/coders/ftxt.c
index e39d237a0..ad898a9a8 100644
--- a/coders/ftxt.c
+++ b/coders/ftxt.c
@@ -197,11 +197,11 @@ static int ReadInt(Image * image,MagickBooleanType *eofInp,int *chPushed,
if (p-buffer >= MaxTextExtent)
{
*eofInp=MagickTrue;
- continue;
+ break;
}
chIn=ReadChar(image,chPushed);
}
- if (p==buffer)
+ if (p == buffer)
{
*eofInp=MagickTrue;
return(0);