]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 5 Feb 2018 13:21:49 +0000 (08:21 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 5 Feb 2018 13:21:49 +0000 (08:21 -0500)
coders/dpx.c

index e81266684d27070c9c277bcae0cd290a65672480..734a818ba7e3c430d0e60096a84f8e396ab62be4 100644 (file)
@@ -1116,7 +1116,8 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
              ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
            offset+=ReadBlob(image,GetStringInfoLength(profile),
              GetStringInfoDatum(profile));
-           (void) SetImageProfile(image,"dpx:user-data",profile,exception);
+           if (EOFBlob(image) != MagickFalse)
+             (void) SetImageProfile(image,"dpx:user-data",profile,exception);
            profile=DestroyStringInfo(profile);
         }
     }