We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3d4eee commit be08fa0Copy full SHA for be08fa0
README.md
@@ -36,7 +36,7 @@ and change the `src/main.rs` to fuzz your code:
36
extern crate fuzzer_sys;
37
extern crate your_crate;
38
39
-fuzz_target!(|data| {
+fuzz_target!(|data: &[u8]| {
40
// code to fuzz goes here
41
});
42
```
src/lib.rs
@@ -22,5 +22,11 @@ macro_rules! fuzz_target {
22
pub extern fn rust_fuzzer_test_input($bytes: &[u8]) {
23
$body
24
}
25
+ };
26
+ (|$bytes:ident: &[u8]| $body:block) => {
27
+ #[no_mangle]
28
+ pub extern fn rust_fuzzer_test_input($bytes: &[u8]) {
29
+ $body
30
+ }
31
32
0 commit comments