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.
hg.code.sf.net/p/graphicsmagick/code/rev/38d0f281e8c8
lists.opensuse.org/opensuse-updates/2016-12/msg00141.html
www.debian.org/security/2016/dsa-3746
www.openwall.com/lists/oss-security/2016/12/05/5
www.securityfocus.com/bid/94625
blogs.gentoo.org/ago/2016/12/01/graphicsmagick-memory-allocation-failure-in-magickrealloc-memory-c
bugzilla.redhat.com/show_bug.cgi?id=1401536