-
Notifications
You must be signed in to change notification settings - Fork 379
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
swim: fix debug assertion abort in proto decode #6662
Conversation
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.
Thanks for the patch! Please, add a test to unit/swim_proto.c
. All patches should have a test when possible. Here it should be. Libfuzzer is rather a helper tool than a regular test running on people's machines. Also I can't run it anyway, so I can't formally validate the fix.
I managed to add a regression test. Output without patch applied:
Output after patch is applied:
|
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.
Thanks for the fixes! Please, merge these 3 commits into one. We usually do fix + test in one commit.
assert(cur < end) after mp_load_u8 in mp_check_binl was failing
c0cba4c
to
48c91ad
Compare
I squashed commits and rebased on master. |
assert(cur < end) after mp_load_u8 in mp_check_binl was failing
This PR fixes abort found with libFuzzer target in #6627