adjust heap overflow check

This commit is contained in:
Cristy
2026-05-22 22:03:07 -04:00
parent 6987ef0a23
commit fee84f28db
+1 -1
View File
@@ -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)