From 46ffa24a6e3a0a8519a041e6460a97d1d1e10740 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 23 Mar 2018 13:34:45 -0400 Subject: [PATCH] ... --- coders/dpx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 *) -- 2.40.0