v2.59c release
MODIFY
Makefile
Makefile
@@ -310,7 +310,7 @@ all_done: test_build
.NOTPARALLEL: clean
clean:
- rm -f $(PROGS) libradamsa.so afl-as as afl-g++ afl-clang afl-clang++ *.o src/*.o *~ a.out core core.[1-9][0-9]* *.stackdump .test .test1 .test2 test-instr .test-instr0 .test-instr1 qemu_mode/qemu-3.1.1.tar.xz afl-qemu-trace afl-gcc-fast afl-gcc-pass.so afl-gcc-rt.o afl-g++-fast *.so *.8
+ rm -f $(PROGS) libradamsa.so afl-fuzz-document afl-as as afl-g++ afl-clang afl-clang++ *.o src/*.o *~ a.out core core.[1-9][0-9]* *.stackdump .test .test1 .test2 test-instr .test-instr0 .test-instr1 qemu_mode/qemu-3.1.1.tar.xz afl-qemu-trace afl-gcc-fast afl-gcc-pass.so afl-gcc-rt.o afl-g++-fast *.so *.8
rm -rf out_dir qemu_mode/qemu-3.1.1 *.dSYM */*.dSYM
-$(MAKE) -C llvm_mode clean
-$(MAKE) -C gcc_plugin clean

MODIFY
README.md
README.md
![Travis State](https://api.travis-ci.com/vanhauser-thc/AFLplusplus.svg?branch=master)
- Release Version: 2.58c
+ Release Version: 2.59c
- Github Version: 2.58d
+ Github Version: 2.59d
includes all necessary/interesting changes from Google's afl 2.56b

MODIFY
docs/ChangeLog
docs/ChangeLog
@@ -13,9 +13,9 @@ Want to stay in the loop on major new features? Join our mailing list by
sending a mail to <afl-users+subscribe@googlegroups.com>.
-----------------------
-Version ++2.58d (dev):
-----------------------
+--------------------------
+Version ++2.59c (release):
+--------------------------
- qbdi_mode: fuzz android native libraries via QBDI framework
- unicorn_mode: switched to the new unicornafl, thanks domenukk

MODIFY
include/config.h
include/config.h
/* Version string: */
-#define VERSION "++2.58d" // c = release, d = volatile github dev
+#define VERSION "++2.59c" // c = release, d = volatile github dev
/******************************************************
* *

MODIFY
llvm_mode/afl-clang-fast.c
llvm_mode/afl-clang-fast.c
@@ -382,6 +382,7 @@ static void edit_params(u32 argc, char** argv) {
break;
}
+
//#endif
}
@@ -443,7 +444,8 @@ int main(int argc, char** argv) {
}
-//#ifndef __ANDROID__ // not sure this is needed for Android, so at the moment we rather keep this out
+ //#ifndef __ANDROID__ // not sure this is needed for Android, so at the moment
+ //we rather keep this out
find_obj(argv[0]);
//#endif

MODIFY
qemu_mode/build_qemu_support.sh
qemu_mode/build_qemu_support.sh
@@ -243,10 +243,9 @@ else
fi
echo "[+] Building libcompcov ..."
-make -C libcompcov
+make -C libcompcov && echo "[+] libcompcov ready"
echo "[+] Building unsigaction ..."
-make -C unsigaction
-echo "[+] libcompcov ready"
+make -C unsigaction && echo "[+] unsigaction ready"
echo "[+] All done for qemu_mode, enjoy!"
exit 0

MODIFY
qemu_mode/patches/afl-qemu-common.h
qemu_mode/patches/afl-qemu-common.h
@@ -79,8 +79,8 @@ void afl_debug_dump_saved_regs();
void afl_persistent_loop();
void tcg_gen_afl_call0(void *func);
-void tcg_gen_afl_compcov_log_call(void *func, target_ulong cur_loc,
- TCGv arg1, TCGv arg2);
+void tcg_gen_afl_compcov_log_call(void *func, target_ulong cur_loc, TCGv arg1,
+ TCGv arg2);
void tcg_gen_afl_maybe_log_call(target_ulong cur_loc);

MODIFY
qemu_mode/patches/afl-qemu-tcg-inl.h
qemu_mode/patches/afl-qemu-tcg-inl.h
@@ -376,8 +376,8 @@ void tcg_gen_afl_call0(void *func) {
}
-void tcg_gen_afl_compcov_log_call(void *func, target_ulong cur_loc,
- TCGv arg1, TCGv arg2) {
+void tcg_gen_afl_compcov_log_call(void *func, target_ulong cur_loc, TCGv arg1,
+ TCGv arg2) {
int i, real_args, nb_rets, pi;
unsigned sizemask, flags;

MODIFY
src/afl-fuzz-bitmap.c
src/afl-fuzz-bitmap.c
@@ -692,6 +692,7 @@ u8 save_if_interesting(char** argv, void* mem, u32 len, u8 fault) {
#else
WARNF("command execution unsupported");
#endif
+
}
last_crash_time = get_cur_time();

MODIFY
src/afl-fuzz-init.c
src/afl-fuzz-init.c
@@ -1905,9 +1905,10 @@ void check_binary(u8* fname) {
#else
#if !defined(__arm__) && !defined(__arm64__)
- if ((f_data[0] != 0xCF || f_data[1] != 0xFA || f_data[2] != 0xED)
- && (f_data[0] != 0xCA || f_data[1] != 0xFE || f_data[2] != 0xBA))
- FATAL("Program '%s' is not a 64-bit or universal Mach-O binary", target_path);
+ if ((f_data[0] != 0xCF || f_data[1] != 0xFA || f_data[2] != 0xED) &&
+ (f_data[0] != 0xCA || f_data[1] != 0xFE || f_data[2] != 0xBA))
+ FATAL("Program '%s' is not a 64-bit or universal Mach-O binary",
+ target_path);
#endif
#endif /* ^!__APPLE__ */

MODIFY
unicorn_mode/build_unicorn_support.sh
unicorn_mode/build_unicorn_support.sh
@@ -124,8 +124,9 @@ fi
echo "[+] All checks passed!"
echo "[*] Making sure unicornafl is checked out"
-git submodule init || exit 1
-git submodule update || exit 1
+test -d unicorn && { cd unicorn && { git stash ; git pull ; cd .. ; } }
+test -d unicorn || git clone https://github.com/vanhauser-thc/unicorn
+test -d unicorn || { echo "[-] not checked out, please install git or check your internet connection." ; exit 1 ; }
echo "[+] Got unicornafl."
echo "[*] making sure config.h matches"

v2.59c release