From: cristy Date: Sun, 20 Jun 2010 19:21:48 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a14f4793cc816f555df8f7d5b2aef5f75710284;p=imagemagick --- diff --git a/ChangeLog b/ChangeLog index 048a2984a..f360152a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ * Reduce memory requirements when dithering on the iPhone. * Command line operators no longer affected by settings that appear after them (e.g. -splice 10x0+0+0 -gravity center). + * Compute the proper DPX user data field size. 2010-06-14 6.6.2-5 Anthony Thyssen * Fix transprancy handling for Morphology Convolve diff --git a/coders/dpx.c b/coders/dpx.c index c0f2f5cd4..5d0e5249d 100644 --- a/coders/dpx.c +++ b/coders/dpx.c @@ -985,7 +985,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception) StringInfo *profile; - profile=AcquireStringInfo(dpx.file.user_size); + profile=AcquireStringInfo(dpx.file.user_size-sizeof(dpx.user.id)); offset+=ReadBlob(image,GetStringInfoLength(profile), GetStringInfoDatum(profile)); (void) SetImageProfile(image,"dpx",profile);