There is a NULL pointer dereference in function imagetobmp of convertbmp.c:980 of OpenJPEG 2.1.2. image->comps[0].data is not assigned a value after initialization(NULL). Impact is Denial of Service.
https://security.gentoo.org/glsa/201710-26
https://github.com/uclouvain/openjpeg/issues/856