Commit 482b2435f for imagemagick.org
commit 482b2435f1fc88c3c3baffc4e1e6fbe13032d904
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Jun 13 13:00:37 2026 -0400
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-3pqj-prwm-c34w
diff --git a/MagickCore/blob.c b/MagickCore/blob.c
index 6f58d519a..62d0ec60c 100644
--- a/MagickCore/blob.c
+++ b/MagickCore/blob.c
@@ -3403,7 +3403,7 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
blob_info->exempt=MagickTrue;
return(SetStreamBuffering(image_info,blob_info));
}
- if ((LocaleNCompare(filename,"fd:",3) == 0) &&
+ if ((strncmp(filename,"fd:",3) == 0) &&
(IsGeometry(filename+3) != MagickFalse))
{
char
diff --git a/MagickWand/script-token.c b/MagickWand/script-token.c
index 7822b23d2..8d29b335c 100644
--- a/MagickWand/script-token.c
+++ b/MagickWand/script-token.c
@@ -217,7 +217,7 @@ WandExport ScriptTokenInfo *AcquireScriptTokenInfo(const char *filename)
token_info->stream=stdin;
token_info->opened=MagickFalse;
}
- else if ( LocaleNCompare(filename,"fd:",3) == 0 ) {
+ else if (strncmp(filename,"fd:",3) == 0 ) {
token_info->stream=fdopen(StringToLong(filename+3),"r");
token_info->opened=MagickFalse;
}