Commit 017c7efe4 for imagemagick.org
commit 017c7efe4d63b953b35ab96fc0939ba3620e4739
Author: Cristy <urban-warrior@imagemagick.org>
Date: Mon May 18 19:44:35 2026 -0400
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-2hhq-c99x-492r
diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c
index 292dc06fb..3638fd5c9 100644
--- a/MagickCore/attribute.c
+++ b/MagickCore/attribute.c
@@ -2028,7 +2028,11 @@ static MagickBooleanType FloydSteinbergImageDepth(Image *image,
channel=GetPixelChannelChannel(image,i);
traits=GetPixelChannelTraits(image,channel);
if ((traits & UpdatePixelTrait) == 0)
- continue;
+ {
+ u++;
+ v++;
+ continue;
+ }
pixel=(double) q[i]+distortion[u];
q[i]=ScaleAnyToQuantum(ScaleQuantumToAny(ClampPixel((MagickRealType)
pixel),range),range);