Skip to content

Commit 1bfc536

Browse files
author
Cristy
committed
initialize image pixels
1 parent ecd168d commit 1bfc536

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

coders/dib.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,12 @@ static Image *ReadDIBImage(const ImageInfo *image_info,ExceptionInfo *exception)
631631
InheritException(exception,&image->exception);
632632
return(DestroyImageList(image));
633633
}
634+
status=ResetImagePixels(image,exception);
635+
if (status == MagickFalse)
636+
{
637+
InheritException(exception,&image->exception);
638+
return(DestroyImageList(image));
639+
}
634640
if (image->storage_class == PseudoClass)
635641
{
636642
size_t

0 commit comments

Comments
 (0)