Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
https://security.gentoo.org/glsa/201612-33
https://bugzilla.redhat.com/show_bug.cgi?id=1232805
http://www.ubuntu.com/usn/USN-2697-1
http://www.securitytracker.com/id/1033149
http://www.securityfocus.com/bid/76017
http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
http://www.debian.org/security/2015/dsa-3326
http://openwall.com/lists/oss-security/2015/07/23/14
http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commitdiff%3Bh=0c0b0859