Commit 1b318ae9d for imagemagick.org

commit 1b318ae9d0b26feb9f2c3a97326538b532b324fd
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Sat Dec 5 11:21:43 2026 +0100

    Make sure we return null when a failure happens in the HDR decoder.

diff --git a/coders/hdr.c b/coders/hdr.c
index 737c1547e..579b11996 100644
--- a/coders/hdr.c
+++ b/coders/hdr.c
@@ -497,8 +497,11 @@ static Image *ReadHDRImage(const ImageInfo *image_info,ExceptionInfo *exception)
   }
   pixels=(unsigned char *) RelinquishMagickMemory(pixels);
   if (EOFBlob(image) != MagickFalse)
-    ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
-      image->filename);
+    {
+      ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
+        image->filename);
+      status=MagickFalse;
+    }
   if (CloseBlob(image) == MagickFalse)
     status=MagickFalse;
   if (status == MagickFalse)