From 2b78a11b48bad1fa30120ce851269ca9ce8833a5 Mon Sep 17 00:00:00 2001 From: nsa Date: Sun, 5 Jul 2020 20:55:11 -0400 Subject: [PATCH] doc: afl fuzzing comment about afl-gcc and afl-g++ This commit includes a short comment in doc/fuzzing.md that gives guidance on compiling Bitcoin Core with AFL instrumentation using afl-gcc and afl-g++. --- doc/fuzzing.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/fuzzing.md b/doc/fuzzing.md index 419b1db44ef..c97b8d4d508 100644 --- a/doc/fuzzing.md +++ b/doc/fuzzing.md @@ -121,6 +121,8 @@ $ git clone https://github.com/google/afl $ make -C afl/ $ make -C afl/llvm_mode/ $ ./autogen.sh +# It is possible to compile with afl-gcc and afl-g++ instead of afl-clang. However, running afl-fuzz +# may require more memory via the -m flag. $ CC=$(pwd)/afl/afl-clang-fast CXX=$(pwd)/afl/afl-clang-fast++ ./configure --enable-fuzz $ make # For macOS you may need to ignore x86 compilation checks when running "make". If so,