-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Match by Ref fix #2105
Match by Ref fix #2105
Conversation
👍 |
e997ebb
to
c1be658
Compare
We need |
.observers_mut() | ||
.match_by_ref_mut(observer_ref) | ||
.unwrap() | ||
executor.observers_mut()[&observer_ref] |
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.
👻
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.
Definitely increases the WTF/line 🤣
|
libafl_sugar/Cargo.toml
Outdated
@@ -17,7 +17,7 @@ all-features = true | |||
|
|||
[features] | |||
python = ["pyo3", "libafl_qemu/python", "pyo3-build-config"] | |||
default = [] | |||
default = ["libafl/adaptive_serialization"] |
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.
clippy flat out refused to pass if this wasn't enabled. I'm not sure how to get around this.
Just some last fixes in some fuzzers now. I'll circle back to this in the morning 🥱 |
Okay, supposing the QEMU runnres pass, this is ready to go 📈 |
@@ -355,6 +355,7 @@ fn fuzz( | |||
let cmpmap = unsafe { OwnedRefMut::from_shmem(&mut cmplog_shmem) }; | |||
|
|||
let cmplog_observer = AFLppCmpLogObserver::new("cmplog", cmpmap, true); | |||
let cmplog_ref = cmplog_observer.type_ref(); |
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.
Why not .reference
?
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.
Yeah that's more in-line with what we're using now anyways. I'll do a mass find-replace and merge, then.
Looks great |
I could've just opened a PR I guess. Closes #2104.