From: Cristy Date: Tue, 6 Feb 2018 00:52:34 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6032 X-Git-Tag: 7.0.7-23~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07e656c7089f3b3ae30a71a042fb903c83e077b6;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6032 --- diff --git a/coders/hdr.c b/coders/hdr.c index 3ed74ad9f..1feb1a6b0 100644 --- a/coders/hdr.c +++ b/coders/hdr.c @@ -711,7 +711,8 @@ static MagickBooleanType WriteHDRImage(const ImageInfo *image_info,Image *image, if ((property != (const char *) NULL) && (strchr(property,'\n') == (char *) NULL)) { - count=FormatLocaleString(header,MagickPathExtent,"#%s\n",property); + count=FormatLocaleString(header,MagickPathExtent,"#%.*s\n", + MagickPathExtent-3,property); (void) WriteBlob(image,(size_t) count,(unsigned char *) header); } property=GetImageProperty(image,"hdr:exposure",exception);