From 728697341f8c02f32c878d05902549a82e3e1af6 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 21 May 2017 11:06:34 -0400 Subject: [PATCH] ... --- coders/jp2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.40.0