Commit 8f666336c for imagemagick.org
commit 8f666336c6cf998084f42e25ec1dd0d754116e5d
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Sat Oct 24 18:25:07 2026 +0200
Set the minimum limit to 1.
diff --git a/MagickCore/profile.c b/MagickCore/profile.c
index a7b11d5a3..af9d7a25f 100644
--- a/MagickCore/profile.c
+++ b/MagickCore/profile.c
@@ -385,6 +385,7 @@ static size_t GetMaxProfileCountFromPolicy(void)
The security policy sets a max profile count limit.
*/
max=StringToSizeType(value,100.0);
+ max=MagickMax(1,max);
value=DestroyString(value);
}
return(MagickMin(max,(size_t) MAGICK_SSIZE_MAX));