-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rfc7871: fix ECS addr truncation and add strict check
The code panics when the prefix length is 0(minus overflow) or at byte boundary(shift overflow), fixed it and added more tests. Added a strict check in parser, according to RFC, it should return form error when there are non-zero bits beyond the prefix length.
- Loading branch information
Showing
1 changed file
with
154 additions
and
73 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