]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7428
authorCristy <urban-warrior@imagemagick.org>
Sat, 7 Apr 2018 13:50:24 +0000 (09:50 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 7 Apr 2018 13:50:24 +0000 (09:50 -0400)
MagickCore/token.c

index cef1c00a84fdb7e1eb526fea448987af9ef943fd..abddc26b0f02ecd5e5d675ec77dc47fd529e72fd 100644 (file)
@@ -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);