In AdvanceCOMP 2.1, png_compress in pngex.cc in advpng has an integer overflow upon encountering an invalid PNG size, which results in an attempted memcpy to write into a buffer that is too small. (There is also a heap-based buffer over-read.)
lists.debian.org/debian-lts-announce/2019/03/msg00004.html
lists.debian.org/debian-lts-announce/2021/12/msg00034.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R56LVWC7KUNXFRKQB3Y5NX2YHFJKYZB4/
sourceforge.net/p/advancemame/bugs/277/
usn.ubuntu.com/3936-1/
usn.ubuntu.com/3936-2/