Commit 06c3d92f8 for imagemagick.org
commit 06c3d92f899433bae787e6302edee16abf8cde02
Author: Cristy <urban-warrior@imagemagick.org>
Date: Mon Nov 2 21:15:08 2026 -0500
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-8gpx-685q-62m9
diff --git a/coders/msl.c b/coders/msl.c
index 6c4d544ac..ad865c1ce 100644
--- a/coders/msl.c
+++ b/coders/msl.c
@@ -1531,6 +1531,8 @@ static void MSLStartElement(void *context,const xmlChar *tag,
if ((prop != (const char *) NULL) &&
(LocaleCompare(prop,value) == 0))
{
+ if (msl_info->image[j] == (Image *) NULL)
+ break;
composite_image=CloneImage(msl_info->image[j],0,0,
MagickFalse,exception);
break;