Heap-based buffer overflow vulnerability in the opj_mqc_byteout function in mqc.c in OpenJPEG before 2.2.0 allows remote attackers to cause a denial of service (application crash) via a crafted bmp file.
https://www.exploit-db.com/exploits/42600/
https://security.gentoo.org/glsa/201710-26
https://github.com/uclouvain/openjpeg/issues/835
https://github.com/uclouvain/openjpeg/commit/397f62c0a838e15d667ef50e27d5d011d2c79c04