Commit e4ce56add for imagemagick.org

commit e4ce56add2909fac71d72b1a70089557b32f836f
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Sat Jun 6 14:24:16 2026 -0400

    https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-j3pv-77gf-fw2g

diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h
index 35b66e6c7..615a0f9c1 100644
--- a/MagickCore/pixel-accessor.h
+++ b/MagickCore/pixel-accessor.h
@@ -205,6 +205,10 @@ static inline Quantum GetPixelIndex(const Image *magick_restrict image,
 {
   if (image->channel_map[IndexPixelChannel].traits == UndefinedPixelTrait)
     return((Quantum) 0);
+#if defined(MAGICKCORE_HDRI_SUPPORT)
+  if (pixel[image->channel_map[IndexPixelChannel].offset] < 0)
+    return((Quantum) 0);
+#endif
   return(pixel[image->channel_map[IndexPixelChannel].offset]);
 }