Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ printf '\x00' > /tmp/smite-seeds/empty
# Start fuzzing with the custom mutator
AFL_CUSTOM_MUTATOR_LIBRARY=target/release/libsmite_ir_mutator.so \
AFL_CUSTOM_MUTATOR_ONLY=1 \
AFL_FRAMESHIFT_DISABLE=1 \
AFL_DISABLE_TRIM=1 \
~/AFLplusplus/afl-fuzz -X -i /tmp/smite-seeds -o /tmp/smite-out -- /tmp/smite-nyx
```
Expand Down
2 changes: 2 additions & 0 deletions smite-ir-mutator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
//! - `AFL_CUSTOM_MUTATOR_ONLY=1` -- disable AFL++'s byte mutators. This also
//! disables the havoc stage entirely, so we deliberately do not implement
//! `afl_custom_havoc_mutation`.
//! - `AFL_FRAMESHIFT_DISABLE=1` -- disable AFL++'s `FrameShift` analysis that
//! bypasses our custom mutators.
Comment on lines +16 to +17
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could mention that this was a bug fixed in AFLplusplus/AFLplusplus@eddb270

//! - `AFL_DISABLE_TRIM=1` -- this library does not implement custom trim and
//! AFL++'s default byte-level trim would corrupt our structured programs.
//!
Expand Down
Loading