From: Cristy Date: Sat, 21 Apr 2018 14:36:58 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7719 X-Git-Tag: 7.0.7-29~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c30518efdca2d7f7ae5f318e7bec4f49360a888;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7719 --- diff --git a/MagickCore/color.c b/MagickCore/color.c index 9832ca094..166d98fd3 100644 --- a/MagickCore/color.c +++ b/MagickCore/color.c @@ -2403,8 +2403,9 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name, } SetGeometryInfo(&geometry_info); if (i >= strlen(name)) - i=(-1); - flags=ParseGeometry(name+i+1,&geometry_info); + flags=ParseGeometry(name,&geometry_info); + else + flags=ParseGeometry(name+i+1,&geometry_info); if (flags == 0) { char