逆向工程 - 樣本分析 - 解決Convert-im6.q16: attempt to perform an operation not allowed by the security policy問題



參考資訊:
https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion

問題如下:

convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.

解法如下:

$ sudo vim /etc/ImageMagick-6/policy.xml
    <policy domain="coder" rights="read | write" pattern="PDF" />

P.S. 需要注意ImageMagick-X的版本差異,添加的內容是在</policymap>前一行