]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/501
authorCristy <urban-warrior@imagemagick.org>
Sun, 28 May 2017 10:42:25 +0000 (06:42 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 28 May 2017 10:42:25 +0000 (06:42 -0400)
coders/jp2.c

index 94b775e1ca6e7f226732d3b2957d5383366e8cf8..b9fe4ab0014f5e4dd5626446485084146be107e2 100644 (file)
@@ -391,7 +391,7 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception)
         (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[i].data == NULL))
+        ((image->ping == MagickFalse) && (jp2_image->comps[i].data == NULL)))
       {
         opj_destroy_codec(jp2_codec);
         opj_image_destroy(jp2_image);