From: Cristy Date: Sat, 7 Apr 2018 13:50:24 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7428 X-Git-Tag: 7.0.7-29~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79efedae509b76ebcf86fc1afcdbb48bfcff1966;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7428 --- diff --git a/MagickCore/token.c b/MagickCore/token.c index cef1c00a8..abddc26b0 100644 --- a/MagickCore/token.c +++ b/MagickCore/token.c @@ -409,7 +409,8 @@ MagickExport MagickBooleanType GlobExpression(const char *expression, status; status=MagickFalse; - pattern+=GetUTFOctets(pattern); + while (GetUTFCode(pattern) == '*') + pattern+=GetUTFOctets(pattern); while ((GetUTFCode(expression) != 0) && (status == MagickFalse)) { status=GlobExpression(expression,pattern,case_insensitive);