From db7583cdbb59ef289df7b06fbbd137d1af47821d Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 16 Jun 2019 18:55:24 -0400 Subject: [PATCH] https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=36200 --- ChangeLog | 4 ++++ coders/jpeg.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.40.0