From: Cristy Date: Sun, 16 Jun 2019 22:55:24 +0000 (-0400) Subject: https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=36200 X-Git-Tag: 7.0.8-50~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db7583cdbb59ef289df7b06fbbd137d1af47821d;p=imagemagick https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=36200 --- diff --git a/ChangeLog b/ChangeLog index 4647a6e24..0e44857bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,10 @@ https://github.com/ImageMagick/ImageMagick/issues/1391). * Heap-buffer-overflow in MagickCore/fourier.c (reference https://github.com/ImageMagick/ImageMagick/issues/1588). + * Fixed a number of issues (reference + https://imagemagick.org/discourse-server/viewforum.php?f=3). + * Fixed a number of issues (reference + https://github.com/ImageMagick/ImageMagick/issues). 2019-06-08 7.0.8-49 Cristy * Release ImageMagick version 7.0.8-49, GIT revision 15708:6d7e1db:20190608 diff --git a/coders/jpeg.c b/coders/jpeg.c index 99f005e5b..9db3461c5 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -2125,7 +2125,8 @@ static void WriteProfile(j_compress_ptr jpeg_info,Image *image, custom_profile),(unsigned int) (length+tag_length+roundup)); } } - if (LocaleCompare(name,"XMP") == 0) + if ((LocaleCompare(name,"XMP") == 0) && + (GetStringInfoLength(profile) <= 65502)) { StringInfo *xmp_profile;