]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1419
authorCristy <urban-warrior@imagemagick.org>
Sat, 15 Dec 2018 14:59:17 +0000 (09:59 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 15 Dec 2018 14:59:17 +0000 (09:59 -0500)
coders/jpeg.c

index c8bdab3f545e4ed5437bc71b6e4bc6d0b02bbb15..b29d44a976276fe9c5a900baffb0b975fa51e9d6 100644 (file)
@@ -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;