]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 21 May 2017 15:06:34 +0000 (11:06 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 21 May 2017 15:06:34 +0000 (11:06 -0400)
coders/jp2.c

index ec6e01e32351d661fb8a990903ada62b72cbec55..94b775e1ca6e7f226732d3b2957d5383366e8cf8 100644 (file)
@@ -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);