5 ms·
Regarding using stable builds of Rust with afl.rs: If I could, I would. afl.rs uses a Rust compiler plugin to register the LLVM pass needed to instrument Rust
by frewsxcv 10y ago
Regarding using stable builds of Rust with afl.rs: If I could, I would.
afl.rs uses a Rust compiler plugin to register the LLVM pass needed to instrument Rust programs so that AFL can run on them:
https://github.com/frewsxcv/afl.rs/blob/master/afl-plugin/lib.rs#L7-L16 https://github.com/frewsxcv/afl.rs/blob/master/afl-plugin/li...
Compiler plugins in Rust are currently unstable, and as far as I know, are not on a path to stability in the near-term.
https://doc.rust-lang.org/book/compiler-plugins.html https://doc.rust-lang.org/book/compiler-plugins.html
- steveklabnik 10y agoDepends on how you define "near term." It's being actively worked on, but is still gonna take a while.
- Manishearth 10y agoIt doesn't need to use llvm_mode. You can do what gcc does and have an afl-gcc binary which mucks with the assembly instead of actually inserting hooks smartly. This isn't as good, but works without nightly :)
- frewsxcv 10y agoHuh, wasn't aware that's how afl-gcc worked. I'll have to look into it sometime, thanks for making me aware of it.