File ImageMagick-CVE-2017-12435.patch of Package ImageMagick.9182
--- a/coders/sun.c +++ b/coders/sun.c @@ -339,6 +339,8 @@ static Image *ReadSUNImage(const ImageInfo *image_info,ExceptionInfo *exception) size_t one; + if (sun_info.maplength > GetBlobSize(image)) + ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile"); image->colors=sun_info.maplength; one=1; if (sun_info.maptype == RMT_NONE)