Commit b84e01381 for imagemagick.org
commit b84e01381eb3ab183de3b32515e9c5e885f265fb
Author: Cristy <urban-warrior@imagemagick.org>
Date: Fri Mar 13 14:54:33 2026 -0400
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-354p-2qx7-jg9g
diff --git a/MagickCore/visual-effects.c b/MagickCore/visual-effects.c
index 072d249e9..cacb7d644 100644
--- a/MagickCore/visual-effects.c
+++ b/MagickCore/visual-effects.c
@@ -704,16 +704,12 @@ MagickExport Image *ColorizeImage(const Image *image,const char *blend,
%
% o image: the image.
%
-% o color_matrix: the color matrix.
+% o color_matrix: the color matrix. It is the callers responsibility to
+% ensure the matrix has at least width * height values.
%
% o exception: return any errors or warnings in this structure.
%
*/
-/* FUTURE: modify to make use of a MagickMatrix Multiply function
- That should be provided in "matrix.c"
- (ASIDE: actually distorts should do this too but currently doesn't)
-*/
-
MagickExport Image *ColorMatrixImage(const Image *image,
const KernelInfo *color_matrix,ExceptionInfo *exception)
{