-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strictly enforce the Commitments max size in CBOR (#835)
The cbor-gen does not seem to implicitly enforce the length specified in the underlying Golang array type. Instead, it uses the maximum number of allowed bytes if no `maxlen` struct tag is specified (2MiB). Strictly enforce the max allowed size to avoid potential attack vector. Relates to: * whyrusleeping/cbor-gen#106
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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