From a1e5ff811aeb935f7adfa4740026c59dac2bb01f Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 29 Dec 2023 22:05:29 -0500 Subject: [PATCH] ignore SyncBlob() status in CloseBlob() (https://github.com/ImageMagick/ImageMagick/issues/6984) --- magick/blob.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/magick/blob.c b/magick/blob.c index 2d61ba715..b961945ce 100644 --- a/magick/blob.c +++ b/magick/blob.c @@ -522,8 +522,7 @@ MagickExport MagickBooleanType CloseBlob(Image *image) blob_info=image->blob; if ((blob_info == (BlobInfo *) NULL) || (blob_info->type == UndefinedStream)) return(MagickTrue); - if (SyncBlob(image) != 0) - ThrowBlobException(blob_info); + (void) SyncBlob(image); status=blob_info->status; switch (blob_info->type) { @@ -4735,6 +4734,8 @@ static int SyncBlob(const Image *image) assert(image->blob != (BlobInfo *) NULL); if (IsEventLogging() != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); + if (EOFBlob(image) != 0) + return(0); blob_info=image->blob; status=0; switch (blob_info->type)