From efc30f28bcb7b65a32732606db5896998eb915d4 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 5 Feb 2018 08:21:49 -0500 Subject: [PATCH] ... --- coders/dpx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.40.0