]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 15 May 2016 00:17:23 +0000 (20:17 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 15 May 2016 00:17:23 +0000 (20:17 -0400)
coders/dib.c

index af84e6d2e526306815c529f4250cfb3840408bdd..cc4dd3af989b6b060893fb6ba2e2ab4cbabdbdd8 100644 (file)
@@ -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)