AFLplusplus / LibAFL

Advanced Fuzzing Library - Slot your Fuzzer together in Rust! Scales across cores and machines. For Windows, Android, MacOS, Linux, no_std, ...
Other
2.03k stars 319 forks source link

Compile-time edge module compilation check, native support for ConstMapObserver #2592

Closed rmalmain closed 2 weeks ago

rmalmain commented 1 month ago

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.

domenukk commented 1 month ago
the trait `Deserialize<'_>` is not implemented for `[T; N]`, which is required by `OwnedMutSizedSliceInner<'_, T, N>: Deserialize<'_>`
domenukk commented 4 weeks ago

Status?

domenukk commented 2 weeks ago

You can try if the nonnull!() macro works for pointers as well. It should as long as it can be evaluated in the const context

rmalmain commented 2 weeks ago

good to go @domenukk or is there something else to discuss?

domenukk commented 2 weeks ago

Feel free to merge after cargo fmt, this is good to go.