Sign extension error in the ReadDIBImage function in ImageMagick before 6.3.5-9 allows context-dependent attackers to execute arbitrary code via a crafted width value in an image file, which triggers an integer overflow and a heap-based buffer overflow.
https://exchange.xforce.ibmcloud.com/vulnerabilities/36737
http://www.ubuntu.com/usn/usn-523-1
http://www.imagemagick.org/script/changelog.php
http://www.debian.org/security/2009/dsa-1858