From 05bc2b62f1efcd8964d68d0adc5fd8f299b4c722 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 5 Apr 2018 19:44:07 -0400 Subject: [PATCH] ... --- coders/palm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coders/palm.c b/coders/palm.c index a36296df4..3210cb61c 100644 --- a/coders/palm.c +++ b/coders/palm.c @@ -421,6 +421,8 @@ static Image *ReadPALMImage(const ImageInfo *image_info, one_row=(unsigned char *) RelinquishMagickMemory(one_row); ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); } + (void) memset(last_row,0,MagickMax(bytes_per_row,2*image->columns)* + sizeof(*last_row)); } mask=(size_t) (1U << bits_per_pixel)-1; for (y=0; y < (ssize_t) image->rows; y++) -- 2.40.0