From: Cristy Date: Thu, 19 Apr 2018 23:47:51 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-29~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74f81b1bbea29826d25c08d851854a6b5080c981;p=imagemagick ... --- diff --git a/coders/sgi.c b/coders/sgi.c index 142035d9f..e45792dfc 100644 --- a/coders/sgi.c +++ b/coders/sgi.c @@ -373,9 +373,10 @@ static Image *ReadSGIImage(const ImageInfo *image_info,ExceptionInfo *exception) if (image->scene >= (image_info->scene+image_info->number_scenes-1)) break; status=SetImageExtent(image,image->columns,image->rows,exception); + if (status != MagickFalse) + status=ResetImagePixels(image,exception); if (status == MagickFalse) return(DestroyImageList(image)); - (void) SetImageBackgroundColor(image,exception); /* Allocate SGI pixels. */