Commit 8f04fd032 for imagemagick.org

commit 8f04fd03263eb49c72436dd2dd97066677f67b59
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Fri Apr 18 19:18:42 2025 +0200

    Use GetMaxMemoryRequest to set the heic security limit for max_memory_block_size (#8109)

diff --git a/coders/heic.c b/coders/heic.c
index 31057b2b7..97572e6cc 100644
--- a/coders/heic.c
+++ b/coders/heic.c
@@ -162,14 +162,13 @@ static inline void HEICSecurityLimits(const ImageInfo *image_info,
   max_profile_size=(int) MagickMin(GetMaxProfileSize(),INT_MAX);
   if (max_profile_size != INT_MAX)
     security_limits->max_color_profile_size=max_profile_size;
+  security_limits->max_memory_block_size=(uint64_t) GetMaxMemoryRequest();
   HEICSetUint64SecurityLimit(image_info,"heic:max-number-of-tiles",
     &security_limits->max_number_of_tiles);
   HEICSetUint32SecurityLimit(image_info,"heic:max-bayer-pattern-pixels",
     &security_limits->max_bayer_pattern_pixels);
   HEICSetUint32SecurityLimit(image_info,"heic:max-items",
     &security_limits->max_items);
-  HEICSetUint64SecurityLimit(image_info,"heic:max-memory-block-size",
-    &security_limits->max_memory_block_size);
   HEICSetUint32SecurityLimit(image_info,"heic:max-components",
     &security_limits->max_components);
   HEICSetUint32SecurityLimit(image_info,"heic:max-iloc-extents-per-item",