aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-01-04 15:14:20 +0100
committerhexcoder- <heiko@hexco.de>2021-01-04 15:14:20 +0100
commit33a7d6f1688856c050b0ac71ac1df4018e4d531c (patch)
tree9e2888ee429ff46ed59feedd39020e9c3bad5b55 /utils
parentc423aebb1a6987d8ca58175aee23bc08b611d4c8 (diff)
downloadAFLplusplus-33a7d6f1688856c050b0ac71ac1df4018e4d531c.tar.gz
code cleanups (from cppcheck)
Diffstat (limited to 'utils')
-rw-r--r--utils/defork/defork.c2
-rw-r--r--utils/persistent_mode/Makefile8
-rw-r--r--utils/qemu_persistent_hook/test.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/utils/defork/defork.c b/utils/defork/defork.c
index f71d1124..f50b9a4b 100644
--- a/utils/defork/defork.c
+++ b/utils/defork/defork.c
@@ -1,4 +1,4 @@
-#define __GNU_SOURCE
+#define _GNU_SOURCE
#include <dlfcn.h>
#include <unistd.h>
#include <stdio.h>
diff --git a/utils/persistent_mode/Makefile b/utils/persistent_mode/Makefile
index 6fa1c30e..e348c46c 100644
--- a/utils/persistent_mode/Makefile
+++ b/utils/persistent_mode/Makefile
@@ -1,10 +1,10 @@
all:
- afl-clang-fast -o persistent_demo persistent_demo.c
- afl-clang-fast -o persistent_demo_new persistent_demo_new.c
- AFL_DONT_OPTIMIZE=1 afl-clang-fast -o test-instr test-instr.c
+ ../../afl-clang-fast -o persistent_demo persistent_demo.c
+ ../../afl-clang-fast -o persistent_demo_new persistent_demo_new.c
+ AFL_DONT_OPTIMIZE=1 ../../afl-clang-fast -o test-instr test-instr.c
document:
- AFL_DONT_OPTIMIZE=1 afl-clang-fast -D_AFL_DOCUMENT_MUTATIONS -o test-instr test-instr.c
+ AFL_DONT_OPTIMIZE=1 ../../afl-clang-fast -D_AFL_DOCUMENT_MUTATIONS -o test-instr test-instr.c
clean:
rm -f persistent_demo persistent_demo_new test-instr
diff --git a/utils/qemu_persistent_hook/test.c b/utils/qemu_persistent_hook/test.c
index afeff202..a0e815dc 100644
--- a/utils/qemu_persistent_hook/test.c
+++ b/utils/qemu_persistent_hook/test.c
@@ -2,7 +2,7 @@
int target_func(unsigned char *buf, int size) {
- printf("buffer:%p, size:%p\n", buf, size);
+ printf("buffer:%p, size:%d\n", buf, size);
switch (buf[0]) {
case 1: