mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-25 11:24:54 +02:00
adjust heap overflow check
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user