Multiple off-by-one errors in the (1) jpc_dec_cp_setfromcox and (2) jpc_dec_cp_setfromrgn functions in jpc/jpc_dec.c in JasPer 1.900.1 and earlier allow remote attackers to execute arbitrary code via a crafted jp2 file, which triggers a heap-based buffer overflow.
http://advisories.mageia.org/MGASA-2014-0514.html
http://packetstormsecurity.com/files/129393/JasPer-1.900.1-Buffer-Overflow.html
http://rhn.redhat.com/errata/RHSA-2014-2021.html
http://rhn.redhat.com/errata/RHSA-2015-0698.html
https://bugzilla.redhat.com/show_bug.cgi?id=1167537
http://secunia.com/advisories/61747
http://secunia.com/advisories/62828
https://exchange.xforce.ibmcloud.com/vulnerabilities/99125
http://www.debian.org/security/2014/dsa-3089
http://www.mandriva.com/security/advisories?name=MDVSA-2014:247
http://www.mandriva.com/security/advisories?name=MDVSA-2015:159
http://www.openwall.com/lists/oss-security/2014/12/04/9
http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html