File ImageMagick-CVE-2026-25967.patch of Package ImageMagick.42997
From 9afe96cc325da1e4349fbd7418675af2f8708c10 Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Sat, 31 Jan 2026 12:59:33 -0500
Subject: [PATCH]
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-72hf-fj62-w6j4
---
coders/ftxt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/coders/ftxt.c b/coders/ftxt.c
index e39d237a035..ad898a9a8bf 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);