From: Cristy Date: Mon, 5 Feb 2018 13:21:49 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-23~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efc30f28bcb7b65a32732606db5896998eb915d4;p=imagemagick ... --- diff --git a/coders/dpx.c b/coders/dpx.c index e81266684..734a818ba 100644 --- a/coders/dpx.c +++ b/coders/dpx.c @@ -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); } }