Skip to content

Commit 1007b98

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1119
1 parent 811929f commit 1007b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: coders/png.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4584,7 +4584,7 @@ static Image *ReadOneJNGImage(MngInfo *mng_info,
45844584
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
45854585
" Copying JDAT chunk data to color_blob.");
45864586

4587-
if (length != 0)
4587+
if ((length != 0) && (color_image != (Image *) NULL))
45884588
{
45894589
(void) WriteBlob(color_image,length,chunk);
45904590
chunk=(unsigned char *) RelinquishMagickMemory(chunk);

0 commit comments

Comments
 (0)