-
-
Notifications
You must be signed in to change notification settings - Fork 415
Clean up TODOs in baby_fuzzers #3547
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
Clean up TODOs in baby_fuzzers #3547
Conversation
|
The 2 failing checks are unrelated to the changes I made. My changes are purely related to baby_fuzzers which all passed. What could the issue be? |
|
It seems those 2 checks are also failing on other recent and merged PRs. |
fuzzers/baby/baby_fuzzer/src/main.rs
Outdated
| // TODO: This will break soon, fix me! See https://github.com/AFLplusplus/LibAFL/issues/2786 | ||
| #[allow(static_mut_refs)] // only a problem in nightly | ||
| let observer = unsafe { StdMapObserver::from_mut_ptr("signals", SIGNALS_PTR, SIGNALS.len()) }; | ||
| let observer = unsafe { StdMapObserver::from_mut_ptr("signals", SIGNALS_PTR, SIGNALS_LEN) }; |
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.
It would be better if these used ConstMapOververs, see this discussion:
#2770 (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.
I couldn't implement ConstMapObserver in baby_fuzzer_swap_differential but I implemented it into the rest of the files I changed
|
The third test case that failed here (other than the 2 that were already failing) also failed on the latest commit pushed to the repo |
|
Awesome, thank you! Yes the failing testcases are due to a Rust update, not this PR :) |
Related to #1907, this PR addresses the TODOs present in the baby_fuzzers. I'm still new to open source contributions, but I think I did all pre-flight checks from CONTRIBUTING.md. If there's anything I can improve, let me know. Thank you!