-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unknownproto: check result from protowire.ConsumeFieldValue and return an error #7770
unknownproto: check result from protowire.ConsumeFieldValue and return an error #7770
Conversation
…n error Given that protowire.ConsumeFieldValue returns -1 when it encounters an error, perform a check for n < 0 and return the respectively obtained error with context about the details. Fixes an issue identified from a go-fuzz session, thanks to Ethan Buchman and the IBC auditors from Informal Systems et al. Fixes #7739.
b247fca
to
b915e8d
Compare
Codecov Report
@@ Coverage Diff @@
## master #7770 +/- ##
=======================================
Coverage 54.19% 54.20%
=======================================
Files 610 610
Lines 38811 38815 +4
=======================================
+ Hits 21035 21039 +4
Misses 15621 15621
Partials 2155 2155 |
1af0c86
to
4499515
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
All done, thanks for the reviews @robert-zaremba @amaurymartiny, addressed! Please help me with the final review/merge. Thank you! |
@alexanderbez could you please take a look? Robert approved and added the automerge label but it perhaps needs another code owner to approve. Thank you! |
Given that protowire.ConsumeFieldValue returns -1 when it encounters an
error, perform a check for n < 0 and return the respectively obtained
error with context about the details.
Fixes an issue identified from a go-fuzz session, thanks to Ethan
Buchman and the IBC auditors from Informal Systems et al.
Fixes #7739.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes