Commit 8caa6a0c6 for imagemagick.org
commit 8caa6a0c62a3ac1f81b19a2ee929fbfe46ee0323
Author: Cristy <urban-warrior@imagemagick.org>
Date: Tue Sep 22 21:57:15 2026 -0400
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pv8x-gq6w-gp4r
diff --git a/MagickCore/fx.c b/MagickCore/fx.c
index 1b3679310..5ba5bc00c 100644
--- a/MagickCore/fx.c
+++ b/MagickCore/fx.c
@@ -4332,7 +4332,7 @@ static FxInfo *AcquireFxInfoPrivate (const Image * images, const char * expressi
{
ssize_t t2;
for (t2 = t-1; t2 >= 0; t2--) {
- DestroyFxRt (&pfx->fxrts[t]);
+ DestroyFxRt (&pfx->fxrts[t2]);
}
}
pfx->fxrts = (fxRtT *) RelinquishMagickMemory (pfx->fxrts);