-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tests for name decoding corner cases * Modify name.decode to throw an error in the following cases: * Not enough data for reading the full label * The label is too long (over 253 characters when dots are included) * A label must be either <= 63 bytes or a pointer * Pointers can only point to prior data (see RFC 1035, section 4.1.4) In addition pointer jumps don't add extra dots in the names anymore. * Make name_decoding tests more specific * Make name.decode non-recursive * Ensure name.decode can read the label header * Fix name.decode error messages
- Loading branch information
Showing
2 changed files
with
86 additions
and
22 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