FS#60580 - imagemagick 7.0.8.14-1 does not work with PDF's

Attached to Project: Arch Linux
Opened by dif (dif) - Thursday, 25 October 2018, 09:31 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 25 October 2018, 14:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
imagemagick 7.0.8.14-1 does not work with PDF files.
Commands like 'display' and 'convert' produce the following output

$ display x.pdf
display: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.

convert x.pdf y.jpg
convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
convert: no images defined `x.jpg' @ error/convert.c/ConvertImageCommand/3288.

$ convert x.jpg z.pdf
convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.

Additional info:
imagemagick 7.0.8.14-1
libmagick 7.0.8.14-1
The previous versions (7.0.8.13-1) do work.

Steps to reproduce:
Install version 7.0.8.14-1.
Reinstalling 7.0.8.13-1 remedies the problem.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 25 October 2018, 14:53 GMT
Reason for closing:  Not a bug
Comment by Jensen McKenzie (your_doomsday) - Thursday, 25 October 2018, 11:12 GMT
Parsing PDF was disabled[1] in /etc/ImageMagick-7/policy.xml due to its inherent insecurity. The same thing did Ubuntu and perhaps more distros will follow as this is recommendation from security researchers.

You may enable it locally by removing 'PDF' from below line:
<policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" />

[1] https://bugs.archlinux.org/task/59778

Loading...