Commit f9d6311aa for imagemagick.org
commit f9d6311aa2b53a5d1fa284c220e52e9dac39bbfd
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Feb 14 07:28:56 2026 -0500
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-h4rj-wc46-x92p
diff --git a/coders/msl.c b/coders/msl.c
index 4e881b132..265bce499 100644
--- a/coders/msl.c
+++ b/coders/msl.c
@@ -4311,6 +4311,12 @@ static void MSLStartElement(void *context,const xmlChar *tag,
/*
Query font metrics.
*/
+ if ((n < 1) || (msl_info->image[n] == (Image *) NULL))
+ {
+ ThrowMSLException(OptionError,"NoImagesDefined",
+ (const char *) tag);
+ break;
+ }
draw_info=CloneDrawInfo(msl_info->image_info[n],
msl_info->draw_info[n]);
angle=0.0;