diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-08-03 20:51:00 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-08-03 20:51:00 +0200 |
commit | 44060590b4c29ae47851e93674564b1e2eae6d07 (patch) | |
tree | 69f3590779aa3b8d4ec8200f71d2162fbcfcd6b0 | |
parent | 38bed607d1f52ad7ede7792fe01163358a703953 (diff) | |
parent | ed63364a777dd7a01a0cfdba938888707053e192 (diff) | |
download | afl++-44060590b4c29ae47851e93674564b1e2eae6d07.tar.gz |
Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev
-rw-r--r-- | examples/afl_untracer/afl-untracer.c | 2 | ||||
-rwxr-xr-x | examples/afl_untracer/libtestinstr.so | bin | 0 -> 17152 bytes | |||
-rw-r--r-- | examples/afl_untracer/patches.txt | 57 | ||||
-rw-r--r-- | libtokencap/Makefile | 17 | ||||
-rw-r--r-- | llvm_mode/afl-clang-fast.c | 10 |
5 files changed, 45 insertions, 41 deletions
diff --git a/examples/afl_untracer/afl-untracer.c b/examples/afl_untracer/afl-untracer.c index 77b15eb8..f6dbbcd6 100644 --- a/examples/afl_untracer/afl-untracer.c +++ b/examples/afl_untracer/afl-untracer.c @@ -437,6 +437,8 @@ inline static u32 __afl_next_testcase(u8 *buf, u32 max_len) { if (write(FORKSRV_FD + 1, &pid, 4) != 4) do_exit = 1; // fprintf(stderr, "write1 %d\n", do_exit); + __afl_area_ptr[0] = 1; // put something in the map + return status; } diff --git a/examples/afl_untracer/libtestinstr.so b/examples/afl_untracer/libtestinstr.so new file mode 100755 index 00000000..389a946c --- /dev/null +++ b/examples/afl_untracer/libtestinstr.so Binary files differdiff --git a/examples/afl_untracer/patches.txt b/examples/afl_untracer/patches.txt index b3063e3a..7e964249 100644 --- a/examples/afl_untracer/patches.txt +++ b/examples/afl_untracer/patches.txt @@ -1,23 +1,34 @@ -libtestinstr.so:0x2000L -0x1050L -0x1063L -0x106fL -0x1078L -0x1080L -0x10a4L -0x10b0L -0x10b8L -0x10c0L -0x10c9L -0x10d7L -0x10e3L -0x10f8L -0x1100L -0x1105L -0x111aL -0x1135L -0x1143L -0x114eL -0x115cL -0x116aL -0x116bL +libtestinstr.so:0x1000 +0x10 +0x12 +0x20 +0x36 +0x30 +0x40 +0x50 +0x63 +0x6f +0x78 +0x80 +0xa4 +0xb0 +0xb8 +0x100 +0xc0 +0xc9 +0xd7 +0xe3 +0xe8 +0xf8 +0x105 +0x11a +0x135 +0x141 +0x143 +0x14e +0x15a +0x15c +0x168 +0x16a +0x16b +0x170 diff --git a/libtokencap/Makefile b/libtokencap/Makefile index 8bdfa5ac..8edda394 100644 --- a/libtokencap/Makefile +++ b/libtokencap/Makefile @@ -28,21 +28,20 @@ UNAME_S =$(shell uname -s)# GNU make UNAME_S:sh=uname -s # BSD make _UNIQ=_QINU_ - _OS_DL = $(_UNIQ)$(UNAME_S) - __OS_DL = $(_OS_DL:$(_UNIQ)Linux=$(_UNIQ)) - ___OS_DL = $(__OS_DL:$(_UNIQ)Darwin=$(_UNIQ)) - ____OS_DL = $(___OS_DL:$(_UNIQ)DragonFly=$(_UNIQ)) - _____OS_DL = $(____OS_DL:$(_UNIQ)$(UNAME_S)=) -______OS_DL = $(_____OS_DL:$(_UNIQ)="-ldl") + _OS_DL = $(_UNIQ)$(UNAME_S) + __OS_DL = $(_OS_DL:$(_UNIQ)Linux=$(_UNIQ)) + ___OS_DL = $(__OS_DL:$(_UNIQ)Darwin=$(_UNIQ)) + ____OS_DL = $(___OS_DL:$(_UNIQ)$(UNAME_S)=) +_____OS_DL = $(____OS_DL:$(_UNIQ)="-ldl") - _OS_TARGET = $(____OS_DL:$(_UNIQ)FreeBSD=$(_UNIQ)) + _OS_TARGET = $(___OS_DL:$(_UNIQ)FreeBSD=$(_UNIQ)) __OS_TARGET = $(_OS_TARGET:$(_UNIQ)OpenBSD=$(_UNIQ)) ___OS_TARGET = $(__OS_TARGET:$(_UNIQ)NetBSD=$(_UNIQ)) ____OS_TARGET = $(___OS_TARGET:$(_UNIQ)Haiku=$(_UNIQ)) _____OS_TARGET = $(____OS_TARGET:$(_UNIQ)SunOS=$(_UNIQ)) -______OS_TARGET = $(____OS_TARGET:$(_UNIQ)$(UNAME_S)=) +______OS_TARGET = $(_____OS_TARGET:$(_UNIQ)$(UNAME_S)=) -TARGETS = $(_____OS_TARGET:$(_UNIQ)=libtokencap.so) +TARGETS = $(______OS_TARGET:$(_UNIQ)=libtokencap.so) LDFLAGS += $(______OS_DL) diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c index 738433ac..484943d2 100644 --- a/llvm_mode/afl-clang-fast.c +++ b/llvm_mode/afl-clang-fast.c @@ -255,12 +255,6 @@ static void edit_params(u32 argc, char **argv, char **envp) { if (getenv("LAF_TRANSFORM_COMPARES") || getenv("AFL_LLVM_LAF_TRANSFORM_COMPARES")) { - if (!be_quiet && getenv("AFL_LLVM_LTO_AUTODICTIONARY") && lto_mode) - WARNF( - "using AFL_LLVM_LAF_TRANSFORM_COMPARES together with " - "AFL_LLVM_LTO_AUTODICTIONARY makes no sense. Use only " - "AFL_LLVM_LTO_AUTODICTIONARY."); - cc_params[cc_par_cnt++] = "-Xclang"; cc_params[cc_par_cnt++] = "-load"; cc_params[cc_par_cnt++] = "-Xclang"; @@ -472,9 +466,7 @@ static void edit_params(u32 argc, char **argv, char **envp) { } if (getenv("AFL_NO_BUILTIN") || getenv("AFL_LLVM_LAF_TRANSFORM_COMPARES") || - getenv("LAF_TRANSFORM_COMPARES") || - (lto_mode && (getenv("AFL_LLVM_LTO_AUTODICTIONARY") || - getenv("AFL_LLVM_AUTODICTIONARY")))) { + getenv("LAF_TRANSFORM_COMPARES") || lto_mode) { cc_params[cc_par_cnt++] = "-fno-builtin-strcmp"; cc_params[cc_par_cnt++] = "-fno-builtin-strncmp"; |