some say BMP and TIFF images "web safe"

This commit is contained in:
Cristy
2023-09-04 08:23:44 -04:00
parent 3f204afc79
commit dec92bf703
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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)
{
+2 -1
View File
@@ -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"/>