-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return error when parsing packet with fewer bytes than TKL field indi…
…cates This fix solves a panic which is raised when parsing a packet which indicates a non-zero token length (TKL) but the packet itself is shorter than the indicated token length. In such a case, a "truncated" error is return from UnmarshalBinary. The bug was found with the help of go-fuzz (https://github.com/dvyukov/go-fuzz).
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 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