In ImageMagick before 6.9.7-10, there is a crash (rather than a "width or height exceeds limit" error report) if the image dimensions are too large, as demonstrated by use of the mpc coder.
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31438
https://www.debian.org/security/2017/dsa-4040
https://www.debian.org/security/2017/dsa-4019
https://usn.ubuntu.com/3681-1/