From: Cristy Date: Wed, 13 Jun 2018 23:30:18 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8879 X-Git-Tag: 7.0.8-1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b8c3d8e8c5654536e0fb923779c79847660a131;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8879 --- diff --git a/MagickCore/color.c b/MagickCore/color.c index 4296b45a0..6666bf8c1 100644 --- a/MagickCore/color.c +++ b/MagickCore/color.c @@ -2422,6 +2422,7 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name, colorname=AcquireString(name); else colorname=AcquireString(name+i+1); + (void) SubstituteString(&colorname,"(",""); (void) SubstituteString(&colorname,")",""); status=MagickFalse; if (LocaleCompare(name,colorname) != 0)