Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Practically-infinite loop in MagickCore/image.c - SetImageBackgroundColor #27

Closed
moshekaplan opened this issue Sep 7, 2015 · 2 comments

Comments

@moshekaplan
Copy link

https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1492885

@urban-warrior
Copy link
Member

Your pict_almost_infinite_loop.pict image converted without complaint for us:

setenv MAGICK_TMPDIR .
convert pict_almost_infinite_loop.pict null:

Modern releases of ImageMagick (6.9.1-5+) check the width and height of an image against the policy.xml file. See http://www.imagemagick.org/discourse-server/viewtopic.php?f=4&t=26801. In the example policy from the post, the maximum width / height is set to 8K. If any image exceeds these limits, ImageMagick exits immediately with a resource policy violation. For older versions of ImageMagick, the memory, map, area, and disk policy values from our post should help prevent denial-of-service for large image requests by returning a resource policy violation.

@moshekaplan
Copy link
Author

Interesting. I had tested this on the version from git, where it ran
indefinitely.

On Sep 7, 2015 8:28 AM, "ImageMagick" notifications@github.com wrote:

Closed #27.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants