-
Notifications
You must be signed in to change notification settings - Fork 38.7k
fuzz: Check banman roundtrip #22322
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
fuzz: Check banman roundtrip #22322
Conversation
|
Concept ACK, good idea. |
jonatack
left a comment
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.
tACK fabadb7702a9cbe477e9e5f91706620456154903
practicalswift
left a comment
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.
cr ACK fabadb7702a9cbe477e9e5f91706620456154903
Great work!
|
Addressed feedback |
vasild
left a comment
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.
ACK fa57878340e6e9e34b01e26091d9d57f1c26f771
|
Thanks for updating. Tested ACK fa57878340e6e9e34b01e26091d9d57f1c26f771 |
vasild
left a comment
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.
ACK fa485d0
|
cr ACK fa485d0 |
| BanMan ban_man_read{banlist_file, /* client_interface */ nullptr, /* default_ban_time */ 0}; | ||
| banmap_t banmap_read; | ||
| ban_man_read.GetBanned(banmap_read); | ||
| assert(banmap == banmap_read); |
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.
Errors in CI job (https://cirrus-ci.com/task/6055643191705600?logs=ci#L2769):
fuzz: test/fuzz/banman.cpp:112: void banman_fuzz_target(FuzzBufferType): Assertion `banmap == banmap_read' failed.
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.
Is there a way to retrieve ./crash-0671aac15e619e99522e2119487eaa9cc97e5a34 from the CI machine or make the fuzzer print it in base64?
Latest master (d67330d) has been changed to:
bitcoin/src/test/fuzz/banman.cpp
Lines 111 to 113 in d67330d
| // Assert temporarily disabled to allow the remainder of the fuzz test to run while a | |
| // fix is being worked on. See https://github.com/bitcoin/bitcoin/pull/22517 | |
| (void)(banmap == banmap_read); |
No description provided.