From: Cristy Date: Sat, 10 Feb 2018 20:12:05 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6203 X-Git-Tag: 7.0.7-23~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb51588cdf2bd02d8076ba0feeeffd91c138d331;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6203 --- diff --git a/coders/dib.c b/coders/dib.c index 22941fe23..05f50bca1 100644 --- a/coders/dib.c +++ b/coders/dib.c @@ -576,8 +576,8 @@ static Image *ReadDIBImage(const ImageInfo *image_info,ExceptionInfo *exception) default: ThrowReaderException(CorruptImageError,"UnrecognizedImageCompression"); } - image->columns=(size_t) MagickAbsoluteValue(dib_info.width); - image->rows=(size_t) MagickAbsoluteValue(dib_info.height); + image->columns=(size_t) MagickAbsoluteValue((ssize_t) dib_info.width); + image->rows=(size_t) MagickAbsoluteValue((ssize_t) dib_info.height); image->depth=8; image->alpha_trait=dib_info.bits_per_pixel == 32 ? BlendPixelTrait : UndefinedPixelTrait;