You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: custom_mutators/rust/README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,15 @@ Bindings to create custom mutators in Rust.
5
5
These bindings are documented with rustdoc. To view the documentation run
6
6
```cargo doc -p custom_mutator --open```.
7
7
8
-
A minimal example can be found in `example`. Build it using `cargo build --example example_mutator`.
8
+
A minimal example can be found in `example`. Build it using `cargo build --example example_mutator`.
9
9
10
10
An example using [lain](https://github.com/microsoft/lain) for structured fuzzing can be found in `example_lain`.
11
11
Since lain requires a nightly rust toolchain, you need to set one up before you can play with it.
12
+
13
+
An example for the use of the post_process function, using [lain](https://github.com/microsoft/lain) with [serde](https://github.com/serde-rs/serde) and [bincode](https://github.com/bincode-org/bincode) can be found in `example_lain_post_process`.
14
+
In order for it to work you need to:
15
+
16
+
- disable input trimming with `AFL_DISABLE_TRIM=1`
17
+
- provide an initial instance serialized with `bincode` or use the `AFL_NO_STARTUP_CALIBRATION=1` environment variable.
18
+
19
+
Note that `bincode` can also be used to serialize/deserialize the lain-generated structure and mutate it rather than generating a new one at each iteration, but it requires some structure serialized with `bincode` as input seed.
0 commit comments