There is a NULL Pointer Access in function imagetopnm of convert.c:1943(jp2) of OpenJPEG 2.1.2. image->comps[compno].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/857