MagickBooleanType
exempt,
+ immutable,
synchronize,
status,
temporary;
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;
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;
{
if (image_info->stream != (StreamHandler) NULL)
image->blob->stream=(StreamHandler) image_info->stream;
+ image->immutable=MagickTrue;
AttachBlob(image->blob,image_info->blob,image_info->length);
return(MagickTrue);
}
image->blob->eof=MagickFalse;
break;
}
- if (image->blob->mapped != MagickFalse)
+ if ((image->blob->mapped != MagickFalse) &&
+ (image->blob->immutable != MagickFalse))
{
image->blob->eof=MagickTrue;
return(-1);