Commit 76784e729 for imagemagick.org

commit 76784e72923dfee22dcca52d50bb9bfc757d70ff
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Thu Apr 30 22:28:21 2026 +0200

    Throw exception to make sure the user knows they are hitting a limit.

diff --git a/coders/heic.c b/coders/heic.c
index e12a74182..d0347143f 100644
--- a/coders/heic.c
+++ b/coders/heic.c
@@ -730,6 +730,9 @@ static MagickBooleanType ReadHEICSequenceFrames(const ImageInfo *image_info,

     if (AcquireMagickResource(ListLengthResource,scene+1) == MagickFalse)
       {
+        (void) ThrowMagickException(exception,GetMagickModule(),
+          ResourceLimitError,"ListLengthExceedsLimit","`%s'",
+          image_info->filename);
         status=MagickFalse;
         break;
       }