From: Cristy Date: Sun, 15 May 2016 00:17:23 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.1-4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e6c553104a29840ba23379ab2dceaca44ac9e79;p=imagemagick ... --- diff --git a/coders/dib.c b/coders/dib.c index af84e6d2e..cc4dd3af9 100644 --- a/coders/dib.c +++ b/coders/dib.c @@ -502,8 +502,8 @@ static Image *ReadDIBImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Microsoft Windows 3.X DIB image file. */ - dib_info.width=(short) ReadBlobLSBLong(image); - dib_info.height=(short) ReadBlobLSBLong(image); + dib_info.width=ReadBlobLSBSignedLong(image); + dib_info.height=ReadBlobLSBSignedLong(image); dib_info.planes=ReadBlobLSBShort(image); dib_info.bits_per_pixel=ReadBlobLSBShort(image); if (dib_info.bits_per_pixel > 32)