Skip to content

Commit 45f58db

Browse files
committed
Merge #19452: doc: afl fuzzing comment about afl-gcc and afl-g++
2b78a11 doc: afl fuzzing comment about afl-gcc and afl-g++ (nsa) Pull request description: When trying to build the fuzz tests with `--enable-lcov` on a Ubuntu machine, noticed that the documentation was lacking with regards to the afl-gcc and afl-g++ options. `afl-clang-fast` and `afl-clang-fast++` in the examples just need to be replaced with `afl-gcc` and `afl-g++`. I also had to set the `-m` flag as well to get the fuzzers to run. ACKs for top commit: practicalswift: ACK 2b78a11 MarcoFalke: Concept ACK 2b78a11, haven't tested Tree-SHA512: d8151afd79de949e8c6da49b69bbbf1470eb478c8ddcbc69b30e86bf9396c0f13835a655d4ae658f7dc4f36c35b02cd23b08358fb73a71e15bf14e76c1f365a4
2 parents fc8da23 + 2b78a11 commit 45f58db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/fuzzing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ $ git clone https://github.com/google/afl
121121
$ make -C afl/
122122
$ make -C afl/llvm_mode/
123123
$ ./autogen.sh
124+
# It is possible to compile with afl-gcc and afl-g++ instead of afl-clang. However, running afl-fuzz
125+
# may require more memory via the -m flag.
124126
$ CC=$(pwd)/afl/afl-clang-fast CXX=$(pwd)/afl/afl-clang-fast++ ./configure --enable-fuzz
125127
$ make
126128
# For macOS you may need to ignore x86 compilation checks when running "make". If so,

0 commit comments

Comments
 (0)