about summary refs log tree commit diff
path: root/utils/aflpp_driver
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-04-12 10:53:23 +0200
committervanhauser-thc <vh@thc.org>2023-04-12 10:53:23 +0200
commit743ae507756db0707a213cd8272b219b0de0f514 (patch)
tree125cecc79c148552844723e95ddd246bf918d6fc /utils/aflpp_driver
parenta5a122a533cbef1b3628d0519f9fad693e0c5ad3 (diff)
downloadafl++-743ae507756db0707a213cd8272b219b0de0f514.tar.gz
nits
Diffstat (limited to 'utils/aflpp_driver')
-rw-r--r--utils/aflpp_driver/GNUmakefile4
-rw-r--r--utils/aflpp_driver/aflpp_driver.c8
2 files changed, 5 insertions, 7 deletions
diff --git a/utils/aflpp_driver/GNUmakefile b/utils/aflpp_driver/GNUmakefile
index 409789cb..b973f96a 100644
--- a/utils/aflpp_driver/GNUmakefile
+++ b/utils/aflpp_driver/GNUmakefile
@@ -20,10 +20,6 @@ endif
 
 CFLAGS := -O3 -funroll-loops -g -fPIC
 
-ifdef MAGMA_PATCH
-	CFLAGS += -DMAGMA_PATCH
-endif
-
 all:	libAFLDriver.a libAFLQemuDriver.a aflpp_qemu_driver_hook.so
 
 aflpp_driver.o:	aflpp_driver.c
diff --git a/utils/aflpp_driver/aflpp_driver.c b/utils/aflpp_driver/aflpp_driver.c
index 5fef4730..ec304c8c 100644
--- a/utils/aflpp_driver/aflpp_driver.c
+++ b/utils/aflpp_driver/aflpp_driver.c
@@ -1,8 +1,10 @@
 //
-// afl_driver.cpp - a glue between AFL++ and libFuzzer
+// afl_driver.cpp - a glue between AFL++ and LLVMFuzzerTestOneInput harnesses
 //
 
-/* This file allows to fuzz libFuzzer-style target functions
+/*
+
+ This file allows to fuzz libFuzzer-style target functions
  (LLVMFuzzerTestOneInput) with AFL++ using persistent in-memory fuzzing.
 
 Usage:
@@ -26,7 +28,7 @@ EOF
 # Build your target with afl-cc -fsanitize=fuzzer
 $ afl-c++ -fsanitize=fuzzer -o test_fuzzer test_fuzzer.cc
 # Run AFL:
-$ rm -rf in out; mkdir in out; echo z > in/foo;
+$ mkdir -p in ; echo z > in/foo;
 $ afl-fuzz -i in -o out -- ./test_fuzzer
 
 */