Skip to content

Commit ed1f055

Browse files
authored
Merge pull request #10119 from kareem-wolfssl/zd21512
Exit MatchDomainName if pattern or string length reach 0.
2 parents 7a6e37d + 90d6312 commit ed1f055

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/internal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13360,6 +13360,9 @@ int MatchDomainName(const char* pattern, int patternLen, const char* str,
1336013360
wildcardEligible = 0;
1336113361
}
1336213362

13363+
if (strLen == 0)
13364+
return 0;
13365+
1336313366
/* Simple case, pattern match exactly */
1336413367
if (p != (char)XTOLOWER((unsigned char) *str))
1336513368
return 0;

0 commit comments

Comments
 (0)