From: Cristy Date: Sun, 21 May 2017 15:06:34 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.5-8~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=728697341f8c02f32c878d05902549a82e3e1af6;p=imagemagick ... --- diff --git a/coders/jp2.c b/coders/jp2.c index ec6e01e32..94b775e1c 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -390,7 +390,8 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception) (jp2_image->comps[0].dx != jp2_image->comps[i].dx) || (jp2_image->comps[0].dy != jp2_image->comps[i].dy) || (jp2_image->comps[0].prec != jp2_image->comps[i].prec) || - (jp2_image->comps[0].sgnd != jp2_image->comps[i].sgnd)) + (jp2_image->comps[0].sgnd != jp2_image->comps[i].sgnd) || + (jp2_image->comps[i].data == NULL)) { opj_destroy_codec(jp2_codec); opj_image_destroy(jp2_image);