-
Notifications
You must be signed in to change notification settings - Fork 291
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
cleanup: Make group packet entry creation less error-prone #2540
Conversation
2cc38dc
to
515e143
Compare
This cleanup found a bug, which is fixed in #2541 |
4db8e90
to
969f514
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2540 +/- ##
==========================================
- Coverage 69.08% 69.02% -0.07%
==========================================
Files 96 96
Lines 28052 28049 -3
==========================================
- Hits 19381 19362 -19
- Misses 8671 8687 +16 ☔ View full report in Codecov by Sentry. |
969f514
to
7d402bd
Compare
7d402bd
to
2be6535
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.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! 1 of 1 approvals obtained (waiting on @iphydf and @JFreegman)
-- commits
line 15 at r2:
What width do you use for the commit message body? Seems to be shorter than the typical 72 columns. Looks like 64 or 65?
2be6535
to
0dc6fd9
Compare
Previously, nurupo wrote…
I just eyeball it. Is there a way to force commit messages to print a newline at a specific column via terminal? |
0dc6fd9
to
4d703a4
Compare
Previously, JFreegman wrote…
You could check the line wrapping functionality of your terminal text editor. If you are using nano, you can add You can also get your commit message spellchecked by adding |
We always assumed that create_array_entry() would only be called with an empty array entry and wouldn't modify entries on error. We now explicitly require both conditions, and also give an error in the case of a non-null data pointer with a zero length field, as this indicates a logic error. Checks for an empty array entry that precede a call to create_array_entry() are now redundant. It should be noted that a non-empty entry doesn't necessarily indicate an error. This condition can be triggered if packets are being sent or received faster than they can be processed/acknowledged, which is common when spamming messages on poor connections.
4d703a4
to
6b6718e
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.
Reviewed 1 of 2 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status: complete! 1 of 1 approvals obtained (waiting on @JFreegman)
We always assumed that create_array_entry() would only be called with an empty array entry and wouldn't modify entries on error. We now explicitly require both conditions, and also give an error in the case of a non-null data pointer with a zero length field, as this indicates a logic error.
Checks for an empty array entry that precede a call to create_array_entry() are now redundant. It should be noted that a non-empty entry doesn't necessarily indicate an error. This condition can be triggered if packets are being sent or received faster than they can be processed/acknowledged, which is common when spamming messages on poor connections.
This change is