Skip to content

Commit

Permalink
https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32726
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Sep 19, 2017
1 parent cd665c3 commit 3bee958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magick/token.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,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;
Expand Down

0 comments on commit 3bee958

Please sign in to comment.