forked from nodejs/http-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: fix url parsing crash on missing host
(http_parse_host) - Check for invalid parameters. - Cast field offset assignment to proper type. (http_parser_parse_url) - Check for invalid parameters. - Cast field offset assignment to proper type. - Fail if the schema field was found but the host field was not found. - Call http_parse_host only if the host field was found. Prior to this change http_parse_host, which expects the UF_HOST field to be filled, could be called even when that field was not filled resulting in a crash. Refer to issue nodejs#209.
- Loading branch information
Showing
1 changed file
with
25 additions
and
9 deletions.
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