The MagickRealloc function in memory.c in Graphicsmagick 1.3.25 allows remote attackers to cause a denial of service (crash) via large dimensions in a jpeg image.
https://bugzilla.redhat.com/show_bug.cgi?id=1401536
http://www.securityfocus.com/bid/94625
http://www.openwall.com/lists/oss-security/2016/12/05/5
http://www.debian.org/security/2016/dsa-3746
http://lists.opensuse.org/opensuse-updates/2016-12/msg00141.html
http://hg.code.sf.net/p/graphicsmagick/code/rev/38d0f281e8c8