v2.59c release

This commit is contained in:
van Hauser 2019-12-18 11:14:12 +01:00
parent 6226e38451
commit 939721e2cb
12 changed files with 31 additions and 27 deletions

View File

@ -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

View File

@ -2,9 +2,9 @@
![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

View File

@ -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

View File

@ -26,7 +26,7 @@
/* Version string: */
#define VERSION "++2.58d" // c = release, d = volatile github dev
#define VERSION "++2.59c" // c = release, d = volatile github dev
/******************************************************
* *

View File

@ -130,7 +130,7 @@ static u8 alloc_verbose, /* Additional debug messages */
static __thread size_t total_mem; /* Currently allocated mem */
static __thread u32 call_depth; /* To avoid recursion via fprintf() */
static u32 alloc_canary;
static u32 alloc_canary;
/* This is the main alloc function. It allocates one page more than necessary,
sets that tailing page to PROT_NONE, and then increments the return address
@ -348,10 +348,10 @@ int posix_memalign(void** ptr, size_t align, size_t len) {
return 0;
}
size_t rem = len % align;
if (rem) len += align - rem;
*ptr = __dislocator_alloc(len);
if (*ptr && len) memset(*ptr, ALLOC_CLOBBER, len);

View File

@ -358,7 +358,7 @@ static void edit_params(u32 argc, char** argv) {
}
//#ifndef __ANDROID__ // not sure, we might need these ifdefs for Android
//#ifndef __ANDROID__ // not sure, we might need these ifdefs for Android
switch (bit_mode) {
case 0:
@ -382,7 +382,8 @@ static void edit_params(u32 argc, char** argv) {
break;
}
//#endif
//#endif
}
@ -443,9 +444,10 @@ 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
//#endif
edit_params(argc, argv);

View File

@ -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

View File

@ -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);

View File

@ -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;

View File

@ -685,13 +685,14 @@ u8 save_if_interesting(char** argv, void* mem, u32 len, u8 fault) {
++unique_crashes;
if (infoexec) { // if the user wants to be informed on new crashes - do
#if !TARGET_OS_IPHONE
// that
// that
if (system(infoexec) == -1)
hnb += 0; // we dont care if system errors, but we dont want a
// compiler warning either
#else
WARNF("command execution unsupported");
#endif
}
last_crash_time = get_cur_time();

View File

@ -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__ */

View File

@ -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"