]> 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:14:08 +0000 (09:14 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 7 Apr 2018 13:14:08 +0000 (09:14 -0400)
MagickCore/token.c

index cef1c00a84fdb7e1eb526fea448987af9ef943fd..dc97605be0181b985326e6e137a4d9f96d69c5af 100644 (file)
@@ -366,6 +366,8 @@ MagickExport MagickBooleanType GlobExpression(const char *expression,
     return(MagickTrue);
   if (GetUTFCode(pattern) == 0)
     return(MagickTrue);
+  while (GetUTFCode(pattern) == '*')
+    pattern+=GetUTFOctets(pattern);
   if (LocaleCompare(pattern,"*") == 0)
     return(MagickTrue);
   p=pattern+strlen(pattern)-1;