Sophie

Sophie

distrib > Mageia > 6 > armv7hl > by-pkgid > 6b6be615f8743ce6e3523cc425763687 > files > 4

graphicsmagick-1.3.31-1.5.mga6.src.rpm

diff -r 2df332ca44cc -r 648e3977a293 coders/bmp.c
--- a/coders/bmp.c	Sun Dec 09 16:24:05 2018 -0600
+++ b/coders/bmp.c	Tue Dec 11 20:53:57 2018 -0600
@@ -1105,7 +1105,11 @@
       }
 
     pixels_size=MagickArraySize(Max(bytes_per_line,image->columns+1),
-                                image->rows);
+                                image->rows+1);
+    if (logging)
+      (void) LogMagickEvent(CoderEvent,GetMagickModule(),
+                            "  Pixels size %" MAGICK_SIZE_T_F "u",
+                            (MAGICK_SIZE_T) pixels_size);
     pixels=MagickAllocateMemory(unsigned char *, pixels_size);
     if (pixels == (unsigned char *) NULL)
       ThrowBMPReaderException(ResourceLimitError,MemoryAllocationFailed,image);