rust-fuzz / libfuzzer

Rust bindings and utilities for LLVM’s libFuzzer
Apache License 2.0
215 stars 46 forks source link

Implementation of `fuzz_target!` is overly restrictive #104

Open cole-miller opened 1 year ago

cole-miller commented 1 year ago

The fuzz_target! macro doesn't accept closures that use a nontrivial pattern for the single argument, like |mut data| { ... }:

https://github.com/rust-fuzz/libfuzzer/blob/e07c487220402f5bec2151de2856a7caff0639c6/src/lib.rs#L204