From 2c30518efdca2d7f7ae5f318e7bec4f49360a888 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 21 Apr 2018 10:36:58 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7719 --- MagickCore/color.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.40.0