Commit 034415c5d for imagemagick.org
commit 034415c5d6d693b4bac954e9c5ba83cc51964201
Author: Cristy <urban-warrior@imagemagick.org>
Date: Wed Nov 18 18:11:09 2026 -0500
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-cpgh-gc9h-cj8q
diff --git a/MagickCore/fx.c b/MagickCore/fx.c
index 792753032..01d5415bb 100644
--- a/MagickCore/fx.c
+++ b/MagickCore/fx.c
@@ -4550,7 +4550,7 @@ MagickExport Image *FxImage(const Image *image,const char *expression,
(fx_traits == UndefinedPixelTrait))
continue;
if ((fx_traits & CopyPixelTrait) != 0) {
- SetPixelChannel (fx_image, channel, p[i], q);
+ SetPixelChannel(fx_image, channel,p[i],q);
continue;
}
@@ -4559,7 +4559,8 @@ MagickExport Image *FxImage(const Image *image,const char *expression,
break;
}
- q[i] = ClampToQuantum ((MagickRealType) (QuantumRange*result));
+ SetPixelChannel(fx_image,channel,ClampToQuantum((MagickRealType)
+ (QuantumRange*result)),q);
}
if (status == MagickFalse)
break;