<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policymap [
	<!ELEMENT policymap (policy)+>
	<!ELEMENT policy (#PCDATA)>
	<!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED>
	<!ATTLIST policy name CDATA #IMPLIED>
	<!ATTLIST policy rights CDATA #IMPLIED>
	<!ATTLIST policy pattern CDATA #IMPLIED>
	<!ATTLIST policy value CDATA #IMPLIED>
]>

<policymap>
	<policy domain="coder" rights="none" pattern="EPHEMERAL" />
	<policy domain="coder" rights="none" pattern="HTTPS" />
	<policy domain="coder" rights="none" pattern="HTTP" />
	<policy domain="coder" rights="none" pattern="URL" />
	<policy domain="coder" rights="none" pattern="FTP" />
	<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="LABEL" />
	<policy domain="coder" rights="none" pattern="SHOW" />
	<policy domain="coder" rights="none" pattern="WIN" />
	<policy domain="coder" rights="none" pattern="PLT" />
	<policy domain="path" rights="none" pattern="@*" />
</policymap>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policymap [
	<!ELEMENT policymap (policy)+>
	<!ELEMENT policy (#PCDATA)>
	<!ATTLIST policy domain (delegate|coder|filter|path|resource) #IMPLIED>
	<!ATTLIST policy name CDATA #IMPLIED>
	<!ATTLIST policy rights CDATA #IMPLIED>
	<!ATTLIST policy pattern CDATA #IMPLIED>
	<!ATTLIST policy value CDATA #IMPLIED>
]>

<policymap>
	<policy domain="coder" rights="none" pattern="EPHEMERAL" />
	<policy domain="coder" rights="none" pattern="HTTPS" />
	<policy domain="coder" rights="none" pattern="HTTP" />
	<policy domain="coder" rights="none" pattern="URL" />
	<policy domain="coder" rights="none" pattern="FTP" />
	<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="LABEL" />
	<policy domain="coder" rights="none" pattern="SHOW" />
	<policy domain="coder" rights="none" pattern="WIN" />
	<policy domain="coder" rights="none" pattern="PLT" />
	<policy domain="path" rights="none" pattern="@*" />
	<policy domain="resource" name="memory" value="500MiB"/>
	<policy domain="resource" name="map" value="750MiB"/>
	<policy domain="resource" name="disk" value="1GiB"/>
</policymap>

Add resource constraints to ImageMagick
Add resource constraints to ImageMagick
