]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/131
authorCristy <urban-warrior@imagemagick.org>
Sun, 14 Feb 2016 14:23:34 +0000 (09:23 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 14 Feb 2016 14:23:34 +0000 (09:23 -0500)
coders/mat.c

index b5a3f1f970dea5fb26392babc57bc8c68ca16d00..93a9d8710abd5cf615aad854655ba367d91ca9b3 100644 (file)
@@ -864,7 +864,7 @@ RestoreMSCWarning
       return(DestroyImageList(image));
 
   /* ----- Load raster data ----- */
-    BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(unsigned char));    /* Ldblk was set in the check phase */
+    BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(double));    /* Ldblk was set in the check phase */
     if (BImgBuff == NULL)
       ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");