Commit 10baa5ff3 for imagemagick.org

commit 10baa5ff3a8a2cd449612b30dc14ea98396581e8
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Sat Oct 24 18:33:06 2026 +0200

    Correct the return value.

diff --git a/MagickCore/profile.c b/MagickCore/profile.c
index af9d7a25f..88df76de8 100644
--- a/MagickCore/profile.c
+++ b/MagickCore/profile.c
@@ -393,6 +393,7 @@ static size_t GetMaxProfileCountFromPolicy(void)

 MagickExport size_t GetMaxProfileCount(void)
 {
+  max_profile_count=10;
   if (max_profile_count == 0)
     max_profile_count=GetMaxProfileCountFromPolicy();
   return(max_profile_count);
@@ -2101,7 +2102,7 @@ static MagickBooleanType SetImageProfileInternal(Image *image,const char *name,
       (void) ThrowMagickException(exception,GetMagickModule(),
         ResourceLimitWarning,"MaximumProfilesExceeded","`%s'",name);
       profile=DestroyStringInfo(profile);
-      return(MagickFalse);
+      return(MagickTrue);
     }
   length=GetStringInfoLength(profile);
   if ((length == 0) || (length > GetMaxProfileSize()))