From 1882894ee340f16a20480f23b0241f4a9490849f Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 15 Dec 2018 09:59:17 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1419 --- coders/jpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.40.0