Commit b095ed5ae for imagemagick.org
commit b095ed5ae7796a9f63324ca2f50f772c408dd3af
Author: Cristy <urban-warrior@imagemagick.org>
Date: Fri Jan 30 21:50:25 2026 -0500
prevent infinite recursion
diff --git a/coders/msl.c b/coders/msl.c
index e5e72efeb..11ff4c0e4 100644
--- a/coders/msl.c
+++ b/coders/msl.c
@@ -4778,7 +4778,7 @@ static void MSLStartElement(void *context,const xmlChar *tag,
(void) CopyMagickString(msl_info->image_info[n]->filename,
value,MagickPathExtent);
(void) SetImageInfo(msl_info->image_info[n],1,exception);
- if ((LocaleCompare(msl_info->image_info[n]->magick,"msl") != 0) ||
+ if ((LocaleCompare(msl_info->image_info[n]->magick,"msl") != 0) &&
(LocaleCompare(msl_info->image_info[n]->magick,"svg") != 0))
next=ReadImage(msl_info->image_info[n],exception);
else