mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-25 11:24:54 +02:00
some say BMP and TIFF images "web safe"
This commit is contained in:
@@ -1259,6 +1259,7 @@ MagickPrivate MagickBooleanType OpenModule(const char *module,
|
||||
p=GetCoderInfo(module,exception);
|
||||
if (p != (CoderInfo *) NULL)
|
||||
(void) CopyMagickString(module_name,p->name,MagickPathExtent);
|
||||
LocaleUpper(module_name);
|
||||
rights=(PolicyRights) (ReadPolicyRights | WritePolicyRights);
|
||||
if (IsRightsAuthorized(ModulePolicyDomain,rights,module_name) == MagickFalse)
|
||||
{
|
||||
|
||||
@@ -91,7 +91,8 @@
|
||||
<!-- Deny all image modules and specifically exempt reading or writing
|
||||
web-safe image formats. -->
|
||||
<policy domain="module" rights="none" pattern="*" />
|
||||
<policy domain="module" rights="read | write" pattern="{GIF,JPEG,MPC,PNG,WEBP}" />
|
||||
<policy domain="module" rights="read | write" pattern="{BMP,GIF,JPEG,PNG,TIFF,WEBP}"/>
|
||||
<policy domain="module" rights="read | write" pattern="{MPC}" stealth="true"/>
|
||||
<!-- This policy sets the number of times to replace content of certain
|
||||
memory buffers and temporary files before they are freed or deleted. -->
|
||||
<policy domain="system" name="shred" value="1"/>
|
||||
|
||||
Reference in New Issue
Block a user