From: Cristy Date: Tue, 3 Apr 2018 23:08:03 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-29~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=989933ca31e89f4690041652503d1abbd1fbbcbf;p=imagemagick ... --- diff --git a/coders/dpx.c b/coders/dpx.c index 3bcea801f..fda1a1e9d 100644 --- a/coders/dpx.c +++ b/coders/dpx.c @@ -851,6 +851,8 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception) dpx.image.image_element[i].bit_size=(unsigned char) ReadBlobByte(image); offset++; dpx.image.image_element[i].packing=ReadBlobShort(image); + if (dpx.image.image_element[i].packing > 2) + ThrowReaderException(CorruptImageError,"ImproperImageHeader"); offset+=2; dpx.image.image_element[i].encoding=ReadBlobShort(image); offset+=2;