Skip to content

Commit

Permalink
Do not allow NULL terminators in the middle of alt name for pattern m…
Browse files Browse the repository at this point in the history
…atching. ZD 17987
  • Loading branch information
ColtonWilley committed May 14, 2024
1 parent 28bd4eb commit 676dfb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -12386,6 +12386,8 @@ int MatchDomainName(const char* pattern, int len, const char* str)
while (--len > 0) {
p = (char)XTOLOWER((unsigned char)*pattern);
pattern++;
if (p == '\0' && len > 0)
return 0;
if (p != '*')
break;
}
Expand Down

0 comments on commit 676dfb7

Please sign in to comment.