* Support namespaces for the security policy. * Respect throttle policy. * Support the -authenticate option for PDF. * Fix Spurious memory allocation message. * Identical images should return inf for PSNR. * Fixed fd leak for webp coder. * Prevent random pixel data for corrupt JPEG image. * Support pixel-cache and shred security policies. * Fixed memory leak when creating nested exceptions in Magick++. * Eliminate bogus assertion. * Unbreak build without JPEG support. OBS-URL: https://build.opensuse.org/package/show/graphics/ImageMagick?expand=0&rev=276
21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
Index: ImageMagick-6.9.8-2/config/policy.xml
|
|
===================================================================
|
|
--- ImageMagick-6.9.8-2.orig/config/policy.xml 2017-03-19 00:28:24.000000000 +0100
|
|
+++ ImageMagick-6.9.8-2/config/policy.xml 2017-03-20 14:05:22.979847731 +0100
|
|
@@ -81,4 +81,15 @@
|
|
<!-- <policy domain="cache" name="memory-map" value="anonymous"/> -->
|
|
<!-- <policy domain="cache" name="synchronize" value="True"/> -->
|
|
<policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/>
|
|
+ <!-- Disable insecure coders by default -->
|
|
+ <!-- https://bugzilla.suse.com/show_bug.cgi?id=978061 -->
|
|
+ <policy domain="coder" rights="none" pattern="EPHEMERAL" />
|
|
+ <policy domain="coder" rights="none" pattern="URL" />
|
|
+ <policy domain="coder" rights="none" pattern="HTTPS" />
|
|
+ <policy domain="coder" rights="none" pattern="MVG" />
|
|
+ <policy domain="coder" rights="none" pattern="MSL" />
|
|
+ <policy domain="coder" rights="none" pattern="TEXT" />
|
|
+ <policy domain="coder" rights="none" pattern="SHOW" />
|
|
+ <policy domain="coder" rights="none" pattern="WIN" />
|
|
+ <policy domain="coder" rights="none" pattern="PLT" />
|
|
</policymap>
|