This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent domain names with excessive subdomains from causing stack ove…
…rflows VALID_URL_NAME adds a greedy quantifier (+) URL_VALID_SUBDOMAIN which contains a greedy quantifier of its own (*). Keeping the resulting backtrace info can cause a stack overflow. This change converts the noncapturing group at the top level of URL_VALID_SUBDOMAIN to an independant/atomic, non-capturing group, which allows the backtrace data to be discarded. Added a unittest that tickles this particular bug.
- Loading branch information
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters