Skip to content
Permalink
Browse files Browse the repository at this point in the history
Zero pixel buffer
  • Loading branch information
Cristy committed Jul 9, 2017
1 parent 784fcac commit f6463ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/jpeg.c
Expand Up @@ -1318,6 +1318,8 @@ static Image *ReadJPEGImage(const ImageInfo *image_info,
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
}
jpeg_pixels=(JSAMPLE *) GetVirtualMemoryBlob(memory_info);
(void) ResetMagickMemory(jpeg_pixels,0,image->columns*
jpeg_info.output_components*sizeof(*jpeg_pixels));
/*
Convert JPEG pixels to pixel packets.
*/
Expand Down

0 comments on commit f6463ca

Please sign in to comment.