-
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.
Define MAX_URL_LENGTH and limit header parsing iterations
Added a macro `MAX_URL_LENGTH` set to 8000 to prevent overly long URLs. Updated the loop conditions in `parse_http_packet` and header parsing to include iteration limits, enhancing input validation and preventing potential buffer overflows.
- Loading branch information
1 parent
7a3ae74
commit 45a3e9a
Showing
2 changed files
with
4 additions
and
2 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
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