In ImageMagick before 6.9.8-8 and 7.x before 7.0.5-9, the ReadJP2Image function in coders/jp2.c does not properly validate the channel geometry, leading to a crash.
https://www.debian.org/security/2017/dsa-4019
https://usn.ubuntu.com/3681-1/
https://security.gentoo.org/glsa/201711-07
https://lists.debian.org/debian-lts-announce/2019/05/msg00015.html
https://github.com/ImageMagick/ImageMagick/issues/501
https://github.com/ImageMagick/ImageMagick/commit/f13c6b54a879aaa771ec64b5a066b939e8f8e7f0
https://github.com/ImageMagick/ImageMagick/commit/acee073df34aa4d491bf5cb74d3a15fc80f0a3aa