Skip to content

Commit bed7dd7

Browse files
authored
add a note that safe Rust code does not need this abomination
1 parent b791b5b commit bed7dd7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ Naturally, this is conditional on the same operation run twice returning the sam
2929

3030
## Quick start for Rust code
3131

32+
If your code does not contain `unsafe` blocks, you don't need to do a thing! Your code is already secure!
33+
34+
However, if you have read from [the black book](https://doc.rust-lang.org/nomicon/) and invoked the Old Ones...
35+
3236
1. Clone this repository, run `make`; this will build libdiffuzz.so
3337
1. Make sure [this code](https://gist.github.com/Shnatsel/0c024a51b64c6e0b6c6e66f991904816) doesn't reliably crash when run on its own, but does crash when you run it like this: `LD_PRELOAD=/path/to/libdiffuzz.so target/release/membleed`
3438
1. If you haven't done regular fuzzing yet - do set up fuzzing with AFL. [It's not that hard.](https://fuzz.rs/book/afl/setup.html)

0 commit comments

Comments
 (0)