diff options
author | hexcoder- <heiko@hexco.de> | 2021-01-04 15:32:22 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-01-04 15:32:22 +0100 |
commit | b7af98e94561ebe44ea37304a357b00499d1104d (patch) | |
tree | 6ba2356e8e6879ae4c528e9a4f775132868a00fc /utils | |
parent | 5cdbfeef4a84b9dc2e5f8e88ee018c6c6e72fa44 (diff) | |
download | AFLplusplus-b7af98e94561ebe44ea37304a357b00499d1104d.tar.gz |
code cleanups (from cppcheck mostly)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/defork/defork.c | 2 | ||||
-rw-r--r-- | utils/persistent_mode/Makefile | 8 | ||||
-rw-r--r-- | utils/qemu_persistent_hook/test.c | 2 |
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: |