Skip to content

tmsp msgs are length prefixed#170

Closed
ebuchman wants to merge 1 commit intodevelopfrom
length_prefix
Closed

tmsp msgs are length prefixed#170
ebuchman wants to merge 1 commit intodevelopfrom
length_prefix

Conversation

@ebuchman
Copy link
Contributor

@jaekwon
Copy link
Contributor

jaekwon commented Dec 22, 2015

Added new go-wire API

@jaekwon jaekwon closed this Dec 22, 2015
@ebuchman ebuchman deleted the length_prefix branch March 15, 2016 02:24
ebuchman added a commit that referenced this pull request Jun 20, 2018
ebuchman pushed a commit that referenced this pull request Jun 20, 2018
Fixes #169
Fixes #1322

The previous code was very trusting assuming that
rational actors will use this code. However, Byzantine
actors don't care and in the case of the linked issue
negative lengths can be sent to this code unfettered
having been received from a peer.

This code is essentially just a sign change from
`==`
to
`<=`

and we've gutted out that attack by being more defensive.
ebuchman pushed a commit that referenced this pull request Jun 20, 2018
Fixes #169
Fixes #1322

The previous code was very trusting assuming that
rational actors will use this code. However, Byzantine
actors don't care and in the case of the linked issue
negative lengths can be sent to this code unfettered
having been received from a peer.

This code is essentially just a sign change from
`==`
to
`<=`

and we've gutted out that attack by being more defensive.
faddat pushed a commit to faddat/tendermint that referenced this pull request Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants