In ImageMagick 7.0.7-29 and earlier, a missing NULL check in ReadOneJNGImage in coders/png.c allows an attacker to cause a denial of service (WriteBlob assertion failure and application exit) via a crafted file.
https://usn.ubuntu.com/3785-1/
https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html
https://lists.debian.org/debian-lts-announce/2018/10/msg00002.html
https://github.com/ImageMagick/ImageMagick6/commit/1007b98f8795ad4bea6bc5f68a32d83e982fdae4