From: Cristy Date: Mon, 29 Jan 2018 01:29:48 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5789 X-Git-Tag: 7.0.7-23~222 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=282b116d74a53bf9ea2e8606775b934ee7779403;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5789 --- diff --git a/coders/miff.c b/coders/miff.c index dfbc2f591..683b4320a 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -914,6 +914,8 @@ static Image *ReadMIFFImage(const ImageInfo *image_info, profile=DestroyStringInfo(profile); break; } + if (LocaleCompare(keyword,"profile") == 0) + break; (void) SetImageProperty(image,keyword,options,exception); break; } diff --git a/coders/mpc.c b/coders/mpc.c index d23996d28..39a557fea 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -646,6 +646,8 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) profile=DestroyStringInfo(profile); break; } + if (LocaleCompare(keyword,"profile") == 0) + break; (void) SetImageProperty(image,keyword,options,exception); break; }