From fee84f28dbdb6fcf4e0297d83d322778c7373dcb Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 22 May 2026 22:03:07 -0400 Subject: [PATCH] adjust heap overflow check --- coders/dpx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/dpx.c b/coders/dpx.c index 4352435b4d..d1d329b1cf 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)