From b0ff95cc0884e8d4dfc5b8a59f01d949913ffd36 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Mon, 28 Nov 2016 22:18:22 +0100 Subject: [PATCH] Removed immutable flag to fix issue when SeekBlob should resize the blob. --- MagickCore/blob.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/MagickCore/blob.c b/MagickCore/blob.c index 0b276f934..52636c8dc 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -129,7 +129,6 @@ struct _BlobInfo MagickBooleanType exempt, - immutable, synchronize, status, temporary; @@ -209,7 +208,6 @@ MagickExport void AttachBlob(BlobInfo *blob_info,const void *blob, blob_info->file_info.file=(FILE *) NULL; blob_info->data=(unsigned char *) blob; blob_info->mapped=MagickFalse; - blob_info->immutable=MagickTrue; } /* @@ -458,7 +456,6 @@ MagickExport BlobInfo *CloneBlobInfo(const BlobInfo *blob_info) clone_info->offset=blob_info->offset; clone_info->size=blob_info->size; clone_info->exempt=blob_info->exempt; - clone_info->immutable=blob_info->immutable; clone_info->status=blob_info->status; clone_info->temporary=blob_info->temporary; clone_info->type=blob_info->type; @@ -698,7 +695,6 @@ MagickExport void *DetachBlob(BlobInfo *blob_info) blob_info->offset=0; blob_info->eof=MagickFalse; blob_info->exempt=MagickFalse; - blob_info->immutable=MagickFalse; blob_info->type=UndefinedStream; blob_info->file_info.file=(FILE *) NULL; data=blob_info->data; @@ -4009,7 +4005,7 @@ MagickExport MagickOffsetType SeekBlob(Image *image, if (image->blob->offset < (MagickOffsetType) ((off_t) image->blob->extent)) break; - if (image->blob->immutable != MagickFalse) + if (image->blob->mapped != MagickFalse) { image->blob->eof=MagickTrue; return(-1); -- 2.40.0