Commit ba4723adf for imagemagick.org

commit ba4723adf2f8a29bf9372ed2c837cf678d3c13f9
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Sat Sep 19 09:40:16 2026 -0400

    https://github.com/ImageMagick/ImageMagick/issues/8969

diff --git a/coders/gif.c b/coders/gif.c
index 8141daa55..48f8ba7af 100644
--- a/coders/gif.c
+++ b/coders/gif.c
@@ -1192,8 +1192,11 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)
                     }
                 }
                 if (magick != MagickFalse)
-                  meta_image->gamma=StringToDouble((char *) info+6,
+                  {
+                    info[info_length]='\0';
+                    meta_image->gamma=StringToDouble((char *) info+6,
                       (char **) NULL);
+                  }
                 else
                   {
                     StringInfo
@@ -1201,8 +1204,8 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)

                     (void) LogMagickEvent(CoderEvent,GetMagickModule(),
                       "      profile name=%s",name);
-                    profile=BlobToProfileStringInfo(name,info,(size_t) info_length,
-                      exception);
+                    profile=BlobToProfileStringInfo(name,info,(size_t)
+                      info_length,exception);
                     if (profile != (StringInfo *) NULL)
                       {
                         if (profiles == (LinkedListInfo *) NULL)