From: Cristy Date: Tue, 18 Jun 2019 15:51:46 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1600 X-Git-Tag: 7.0.8-50~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe3066122ef72c82415811d25e9e3fad622c0a99;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1600 --- diff --git a/coders/bmp.c b/coders/bmp.c index fdabac950..c964834fe 100644 --- a/coders/bmp.c +++ b/coders/bmp.c @@ -1506,7 +1506,7 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception) if (GetNextImageInList(image) == (Image *) NULL) { status=MagickFalse; - return((Image *) NULL); + break; } image=SyncNextImageInList(image); status=SetImageProgress(image,LoadImagesTag,TellBlob(image), diff --git a/coders/viff.c b/coders/viff.c index 5f89ad15e..05aac7c55 100644 --- a/coders/viff.c +++ b/coders/viff.c @@ -773,8 +773,8 @@ static Image *ReadVIFFImage(const ImageInfo *image_info, AcquireNextImage(image_info,image,exception); if (GetNextImageInList(image) == (Image *) NULL) { - image=DestroyImageList(image); - return((Image *) NULL); + status=MagickFalse; + break; } image=SyncNextImageInList(image); status=SetImageProgress(image,LoadImagesTag,TellBlob(image),