From: Cristy Date: Tue, 19 Sep 2017 11:10:03 +0000 (-0400) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32726 X-Git-Tag: 7.0.7-4~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abf3595128d9341d2ea576ab6d30aaf5d5678a34;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32726 --- diff --git a/MagickCore/token.c b/MagickCore/token.c index a9199258c..b3ea883a1 100644 --- a/MagickCore/token.c +++ b/MagickCore/token.c @@ -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;