Skip to content
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

p2p: check protonil for all receives #2346

Merged
merged 4 commits into from
Jun 22, 2023
Merged

p2p: check protonil for all receives #2346

merged 4 commits into from
Jun 22, 2023

Conversation

corverroos
Copy link
Contributor

Check all libp2p protos received over the wire for nil fields.

Also extend protonil to detect nil list eleements and nil map values.

category: misc
ticket: none

@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Patch coverage: 72.91% and project coverage change: +0.03 🎉

Comparison is base (2fb2481) 53.62% compared to head (4ad2333) 53.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2346      +/-   ##
==========================================
+ Coverage   53.62%   53.66%   +0.03%     
==========================================
  Files         192      192              
  Lines       25775    25818      +43     
==========================================
+ Hits        13823    13855      +32     
- Misses      10242    10256      +14     
+ Partials     1710     1707       -3     
Impacted Files Coverage Δ
app/peerinfo/peerinfo.go 75.00% <0.00%> (+0.98%) ⬆️
p2p/receive.go 57.37% <0.00%> (-2.97%) ⬇️
app/protonil/protonil.go 90.78% <81.57%> (-9.22%) ⬇️
app/peerinfo/adhoc.go 76.92% <100.00%> (+1.92%) ⬆️
core/proto.go 64.86% <100.00%> (ø)

... and 11 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jun 22, 2023
@obol-bulldozer obol-bulldozer bot merged commit 347a50a into main Jun 22, 2023
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the corver/nilchekcs branch June 22, 2023 10:23
xenowits pushed a commit that referenced this pull request Jun 26, 2023
Check all libp2p protos received over the wire for nil fields.

Also extend `protonil` to detect nil list eleements and nil map values.

category: misc
ticket: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants