From 9c9a1f7d37b3c8de2de0c615edfe36479cf7c43f Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 15 Apr 2018 17:03:57 -0400 Subject: [PATCH] https://oss-fuzz.com/v2/testcase-detail/5249469248438272 --- MagickCore/color.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MagickCore/color.c b/MagickCore/color.c index 7ec9253e7..9832ca094 100644 --- a/MagickCore/color.c +++ b/MagickCore/color.c @@ -2402,9 +2402,9 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name, color->depth=8; } SetGeometryInfo(&geometry_info); - flags=0; - if (i < strlen(name)) - flags=ParseGeometry(name+i+1,&geometry_info); + if (i >= strlen(name)) + i=(-1); + flags=ParseGeometry(name+i+1,&geometry_info); if (flags == 0) { char -- 2.40.0