Commit fee84f28d for imagemagick.org
commit fee84f28dbdb6fcf4e0297d83d322778c7373dcb
Author: Cristy <urban-warrior@imagemagick.org>
Date: Fri May 22 22:03:07 2026 -0400
adjust heap overflow check
diff --git a/coders/dpx.c b/coders/dpx.c
index 4352435b4..d1d329b1c 100644
--- a/coders/dpx.c
+++ b/coders/dpx.c
@@ -1141,7 +1141,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
(void) CloseBlob(image);
return(GetFirstImageInList(image));
}
- if (HeapOverflowSanityCheck(image->columns,4*image->depth) != MagickFalse)
+ if (HeapOverflowSanityCheck(image->columns,4*image->depth/8) != MagickFalse)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
status=SetImageExtent(image,image->columns,image->rows,exception);
if (status == MagickFalse)