aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ImageMagick7
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2016-05-04 05:52:32 +0800
committerkwm <kwm@FreeBSD.org>2016-05-04 05:52:32 +0800
commit3ebfbb5c864947ca663e4762a81d0c2a0bdbef3f (patch)
tree5f9088df5976529e874708dfbd30ce13659b540e /graphics/ImageMagick7
parentce9825a38dafb3510e6a44f5742c47e466a3c5f8 (diff)
downloadfreebsd-ports-gnome-3ebfbb5c864947ca663e4762a81d0c2a0bdbef3f.tar.gz
freebsd-ports-gnome-3ebfbb5c864947ca663e4762a81d0c2a0bdbef3f.tar.zst
freebsd-ports-gnome-3ebfbb5c864947ca663e4762a81d0c2a0bdbef3f.zip
Disable EPHEMERAL, HTTPS, MVG and MSL coders until a a new release can be
made what fixes the CVE issues with these coders. Obtained from: ImageMagick support forum Security: CVE-2016-3714
Diffstat (limited to 'graphics/ImageMagick7')
-rw-r--r--graphics/ImageMagick7/Makefile1
-rw-r--r--graphics/ImageMagick7/files/patch-config_delegates.xml.in10
-rw-r--r--graphics/ImageMagick7/files/patch-config_policy.xml12
3 files changed, 23 insertions, 0 deletions
diff --git a/graphics/ImageMagick7/Makefile b/graphics/ImageMagick7/Makefile
index c8aca4972fa4..649ef90f416e 100644
--- a/graphics/ImageMagick7/Makefile
+++ b/graphics/ImageMagick7/Makefile
@@ -2,6 +2,7 @@
PORTNAME= ImageMagick
DISTVERSION= 7.0.1-0
+PORTREVISION= 1
CATEGORIES= graphics perl5
MASTER_SITES= http://www.imagemagick.org/download/ \
http://www.imagemagick.org/download/legacy/ \
diff --git a/graphics/ImageMagick7/files/patch-config_delegates.xml.in b/graphics/ImageMagick7/files/patch-config_delegates.xml.in
new file mode 100644
index 000000000000..c269fb5771f6
--- /dev/null
+++ b/graphics/ImageMagick7/files/patch-config_delegates.xml.in
@@ -0,0 +1,10 @@
+--- config/delegates.xml.in.orig 2016-05-03 23:33:12.300197000 +0200
++++ config/delegates.xml.in 2016-05-03 23:33:29.641438000 +0200
+@@ -90,7 +90,6 @@
+ <delegate decode="hpgl" command="&quot;@HPGLDecodeDelegate@&quot; -q -m eps -f `basename &quot;%o&quot;` &quot;%i&quot;; mv -f `basename &quot;%o&quot;` &quot;%o&quot;"/>
+ <delegate decode="htm" command="&quot;@HTMLDecodeDelegate@&quot; -U -o &quot;%o&quot; &quot;%i&quot;"/>
+ <delegate decode="html" command="&quot;@HTMLDecodeDelegate@&quot; -U -o &quot;%o&quot; &quot;%i&quot;"/>
+- <delegate decode="https" command="&quot;@WWWDecodeDelegate@&quot; -s -k -L -o &quot;%o&quot; &quot;https:%F&quot;"/>
+ <delegate decode="ilbm" command="&quot;@ILBMDecodeDelegate@&quot; &quot;%i&quot; &gt; &quot;%o&quot;"/>
+ <delegate decode="jxr" command="mv &quot;%i&quot; &quot;%i.jxr&quot;; &quot;@JXRDecodeDelegate@&quot; -i &quot;%i.jxr&quot; -o &quot;%o.pnm&quot;; mv &quot;%i.jxr&quot; &quot;%i&quot;; mv &quot;%o.pnm&quot; &quot;%o&quot;"/>
+ <delegate decode="man" command="&quot;@MANDelegate@&quot; -man -Tps &quot;%i&quot; &gt; &quot;%o&quot;"/>
diff --git a/graphics/ImageMagick7/files/patch-config_policy.xml b/graphics/ImageMagick7/files/patch-config_policy.xml
new file mode 100644
index 000000000000..171053813054
--- /dev/null
+++ b/graphics/ImageMagick7/files/patch-config_policy.xml
@@ -0,0 +1,12 @@
+--- config/policy.xml.orig 2016-05-03 23:18:45.652543000 +0200
++++ config/policy.xml 2016-05-03 23:19:23.818471000 +0200
+@@ -58,4 +58,9 @@
+ <!-- <policy domain="resource" name="time" value="3600"/> -->
+ <!-- <policy domain="system" name="precision" value="6"/> -->
+ <policy domain="cache" name="shared-secret" value="passphrase"/>
++ <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" />
+ </policymap>