]> granicus.if.org Git - imagemagick/commitdiff
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32726
authorCristy <urban-warrior@imagemagick.org>
Tue, 19 Sep 2017 11:10:03 +0000 (07:10 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 19 Sep 2017 11:10:03 +0000 (07:10 -0400)
MagickCore/token.c

index a9199258c7d282345be64c87a2d3c1818d5f9e30..b3ea883a1120f02e67189faa074fe6202f63225a 100644 (file)
@@ -301,7 +301,7 @@ MagickExport void GetNextToken(const char *start,const char **end,
     }
   }
   token[i]='\0';
-  if (LocaleNCompare(token,"url(",4) == 0)
+  if ((LocaleNCompare(token,"url(",4) == 0) && (strlen(token) > 4))
     {
       ssize_t
         offset;