Skip to content

Commit

Permalink
change afl instructions slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
agroce committed Jan 10, 2019
1 parent b24e346 commit 16fcad4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,15 +398,22 @@ Test case reduction should work on any OS.

DeepState can also be used with a file-based fuzzer (e.g. AFL). There
are a few steps to this. First, compile DeepState itself with any
needed instrumentation. E.g., to use it with AFL, you might want to add
something like:
needed instrumentation. E.g., to use it with AFL, you will want to
set the compilers to `afl-gcc` and `afl-g++` or `afl-clang` and
`afl-clang++` when you `cmake` on your DeepState install:

```
CC=afl-clang CXX=afl-clang++ cmake ..
```

Alternatively, you can edit the `CMakeLists.txt` file and add:

```
SET(CMAKE_C_COMPILER /usr/local/bin/afl-gcc)
SET(CMAKE_CXX_COMPILER /usr/local/bin/afl-g++)
```

to `deepstate/CMakeLists.txt`. Second, do the same for your DeepState
Do the same for your DeepState
test harness and any code it links to you want instrumented. Finally, run the fuzzing via the
interface to replay test files. For example, to fuzz the `OneOf`
example, if we were in the `deepstate/build/examples` directory, you
Expand Down

0 comments on commit 16fcad4

Please sign in to comment.