-
Notifications
You must be signed in to change notification settings - Fork 551
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
Update Fuzzer documentation and Configuration #4114
base: master
Are you sure you want to change the base?
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.
Hi @Logix64 thanks so much for taking this on! This is definitely a nice improvement especially the span bit. There are a couple trivial warnings from clang-tidy
and some formatting things (there is a diff in the format
CI job) that need to be addressed. For the RNG part I'll give more context in the original ticket.
src/fuzzer/fuzzers.h
Outdated
std::make_shared<Botan::ChaCha_RNG>(Botan::secure_vector<uint8_t>(32)); | ||
inline std::shared_ptr<Botan::System_RNG> fuzzer_rng_as_shared() { | ||
static std::shared_ptr<Botan::System_RNG> rng = | ||
std::make_shared<Botan::System_RNG>(); |
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.
This definitely doesn't work - the non-determinism of the RNG will confuse the fuzzer. Lets revert this bit and then take up the RNG piece in a future PR. I'll add more context in the original ticket
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.
Okay, thank you. I changed it in my recent commit.
Thanks @Logix64 this is a nice cleanup. Can you rebase then squash the last 3 commits? Other than that this looks to me ready to merge. |
This references #4061. With these changes both ASL and libFuzzer build on my device. Extending on that, I would like to continue to update the fuzzing source code, but I don't know how exactly (especially the RNG part).
Any help would be appreciated.