Commit 2ae4e0780 for imagemagick.org

commit 2ae4e078020c57d6317e83725ff733178710b6e4
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Sat Oct 24 13:38:11 2026 +0200

    Added a check for empty profiles.

diff --git a/coders/gif.c b/coders/gif.c
index fe41b6a3a..d6f41b75e 100644
--- a/coders/gif.c
+++ b/coders/gif.c
@@ -1193,6 +1193,11 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)
                         }
                     }
                 }
+                if (info_length == 0)
+                  {
+                    info=(unsigned char*) RelinquishMagickMemory(info);
+                    break;
+                  }
                 if (magick != MagickFalse)
                   {
                     info[info_length]='\0';