From: Cristy Date: Fri, 23 Mar 2018 17:34:45 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-28~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46ffa24a6e3a0a8519a041e6460a97d1d1e10740;p=imagemagick ... --- diff --git a/coders/dpx.c b/coders/dpx.c index 9959ffc38..3bcea801f 100644 --- a/coders/dpx.c +++ b/coders/dpx.c @@ -726,7 +726,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception) dpx.file.version); (void) FormatImageProperty(image,"dpx:file.version","%.8s",dpx.file.version); dpx.file.file_size=ReadBlobLong(image); - if (dpx.file.file_size > GetBlobSize(image)) + if (0 && dpx.file.file_size > GetBlobSize(image)) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); offset+=4; dpx.file.ditto_key=ReadBlobLong(image); @@ -735,7 +735,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception) (void) FormatImageProperty(image,"dpx:file.ditto.key","%u", dpx.file.ditto_key); dpx.file.generic_size=ReadBlobLong(image); - if (dpx.file.generic_size > GetBlobSize(image)) + if (0 && dpx.file.generic_size > GetBlobSize(image)) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); offset+=4; dpx.file.industry_size=ReadBlobLong(image); @@ -743,7 +743,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); offset+=4; dpx.file.user_size=ReadBlobLong(image); - if (dpx.file.user_size > GetBlobSize(image)) + if (0 && dpx.file.user_size > GetBlobSize(image)) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); offset+=4; offset+=ReadBlob(image,sizeof(dpx.file.filename),(unsigned char *)