From: Cristy Date: Sat, 15 Dec 2018 14:59:17 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/1419 X-Git-Tag: 7.0.8-17~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1882894ee340f16a20480f23b0241f4a9490849f;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1419 --- diff --git a/coders/jpeg.c b/coders/jpeg.c index c8bdab3f5..b29d44a97 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -781,7 +781,8 @@ static boolean ReadProfile(j_decompress_ptr jpeg_info) } } previous_profile=GetImageProfile(image,name); - if (previous_profile != (const StringInfo *) NULL) + if ((previous_profile != (const StringInfo *) NULL) && + (CompareStringInfo(previous_profile,profile) != 0)) { size_t profile_length;