-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Compile-time edge module compilation check, native support for ConstMapObserver #2592
Conversation
* update frida crate to the latest version * adapt libafl_frida to the latest version of frida
replaced OwnedSlice in ConstMapObserver by the new OwnedSizedSlice.
|
Status? |
You can try if the |
fuzzers/baby/backtrace_baby_fuzzers/c_code_with_fork_executor/src/main.rs
Outdated
Show resolved
Hide resolved
good to go @domenukk or is there something else to discuss? |
fuzzers/baby/backtrace_baby_fuzzers/c_code_with_fork_executor/src/main.rs
Outdated
Show resolved
Hide resolved
|
||
impl StdEdgeCoverageClassicModule { | ||
#[must_use] | ||
pub fn builder() -> StdEdgeCoverageClassicModuleBuilder { |
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.
At some point it would be beautiful to start documenting anything... Like, what does classic mean?
@@ -150,37 +148,30 @@ where | |||
} | |||
} | |||
|
|||
impl<T, const N: usize> VariableLengthMapObserver for ConstMapObserver<'_, T, N> | |||
impl<T, const N: usize> ConstantLengthMapObserver<N> for ConstMapObserver<'_, T, N> |
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.
How about renaming them to ConstLenMapObserver
and VarLenMapObserver
btw? Seems shorter and just as to clear.
Random idea of course, feel free to ignore.
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.
ok for me, both work out imho
Feel free to merge after |
…apObserver (AFLplusplus#2592) * compile-time edge module compilation trick * clippy * possible since rust 1.79 * split edge module in submodules * Update frida to 0.14.0 (AFLplusplus#2596) * update frida crate to the latest version * adapt libafl_frida to the latest version of frida * tracers and generators private modules * do not use star export. * same for drcov * forgot a file... * first draft of generic-based edge module for ConstantLengthMapObserver. * integration of OwnedSizedSlice. replaced OwnedSlice in ConstMapObserver by the new OwnedSizedSlice. * fix serde stuff * no std * import * fixed qemu_cmin with new constant map abstraction. * fix const map * fix clippy from another pr... * fix non-null usage * fix ci? * new feature stuff * fixes * minor fixes * fmt * non null * im stupid * fmt * fix fuzzer * fix fuzzers * sized slice * fuzzer fixes * ptr::NonNull -> NonNull * shorter trait length * fmt
follow-up of the patches i introduced in #2520 on edge module.
it improves how map_observer guarantees are done at compile-time when building an edge module, with a nicer error message in case the right function is not called.