In Jasper 4.2.2, the jpc_streamlist_remove function in src/libjasper/jpc/jpc_dec.c:2407 has an assertion failure vulnerability, allowing attackers to cause a denial of service attack through a specific image file.
https://github.com/jasper-software/jasper/issues/381
https://github.com/jasper-software/jasper/commit/6d084c53a77762f41bb5310713a5f1872fef55f5