Commit 21c25b4ea for imagemagick.org
commit 21c25b4eafdabd016f338efea717ed94e12b3c64
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Oct 31 09:38:02 2026 -0400
more conservative coder depth
diff --git a/MagickCore/constitute-private.h b/MagickCore/constitute-private.h
index cdfb228f5..7869fb797 100644
--- a/MagickCore/constitute-private.h
+++ b/MagickCore/constitute-private.h
@@ -35,7 +35,7 @@ extern MagickExport Image
static inline MagickBooleanType CheckCoderDepth(ImageInfo *image_info,
ExceptionInfo *exception)
{
-#define MagickMaxCoderDepth 250
+#define MagickMaxCoderDepth 128
if (image_info->coder_depth++ >= MagickMaxCoderDepth)
{