Skip to content

Commit

Permalink
ignore SyncBlob() status in CloseBlob() (ImageMagick/ImageMagick#6984)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Dec 30, 2023
1 parent 2dd01aa commit a1e5ff8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions magick/blob.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a1e5ff8

Please sign in to comment.