-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds compression pointer loop detection in Domain parsing (#87)
* Adds compression pointer loop detection in Domain parsing This adds a simple loop detection to the Domain parsing method. Whenever a pointer offset has been seen before, the function aborts by throwing an exception. This prevents an infinite loop that could cause a DoS attack by a specially crafted DNS response packet. * Fix style Co-authored-by: Mirza Kapetanovic <mirza.kapetanovic@gmail.com>
- Loading branch information
1 parent
cf7105a
commit 18d8c5d
Showing
3 changed files
with
20 additions
and
4 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
Binary file not shown.
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