From: Cristy Date: Fri, 29 Dec 2017 16:37:36 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/923 X-Git-Tag: 7.0.7-19~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef2dc62cc31a4ce767281d8ec481b990c02d0681;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/923 --- diff --git a/coders/dpx.c b/coders/dpx.c index d3e7745c6..97cce53c6 100644 --- a/coders/dpx.c +++ b/coders/dpx.c @@ -1157,6 +1157,8 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception) SetPrimaryChromaticity((DPXColorimetric) dpx.image.image_element[n].colorimetric,&image->chromaticity); image->depth=dpx.image.image_element[n].bit_size; + if (image->depth > 32) + ThrowReaderException(CorruptImageError,"ImproperImageHeader"); samples_per_pixel=1; quantum_type=GrayQuantum; component_type=dpx.image.image_element[n].descriptor;