From b1e7b834aca1133d4f19314149d38c87dd295147 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Tue, 14 Apr 2020 11:24:53 +0200 Subject: add missing default names for AFL_LLVM_INSTRUMENT --- llvm_mode/afl-clang-fast.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c index 52a4829c..b121ea97 100644 --- a/llvm_mode/afl-clang-fast.c +++ b/llvm_mode/afl-clang-fast.c @@ -548,6 +548,10 @@ int main(int argc, char **argv, char **envp) { if ((ptr = getenv("AFL_LLVM_INSTRUMENT")) != NULL) { + if (strncasecmp(ptr, "default", strlen("default")) == 0 || + strncasecmp(ptr, "afl", strlen("afl")) == 0 || + strncasecmp(ptr, "classic", strlen("classic")) == 0 ) + instrument_mode = INSTRUMENT_DEFAULT; if (strncasecmp(ptr, "cfg", strlen("cfg")) == 0 || strncasecmp(ptr, "instrim", strlen("instrim")) == 0) instrument_mode = INSTRUMENT_CFG; -- cgit 1.4.1 From d2a76287485dafc4df7ceb4abc44b27f1fe0527a Mon Sep 17 00:00:00 2001 From: van Hauser Date: Tue, 14 Apr 2020 11:26:07 +0200 Subject: fix travis fails --- src/afl-fuzz-redqueen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c index 82753d0c..bce1973c 100644 --- a/src/afl-fuzz-redqueen.c +++ b/src/afl-fuzz-redqueen.c @@ -471,9 +471,9 @@ static u8 rtn_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u32 len) { u32 loggeds = h->hits; if (h->hits > CMP_MAP_RTN_H) loggeds = CMP_MAP_RTN_H; - u8 status; + u8 status = 0; // opt not in the paper - u32 fails; + u32 fails = 0; u8 found_one = 0; for (i = 0; i < loggeds; ++i) { -- cgit 1.4.1 From b63dd7a464ce654647b7710eb491ecf0e48c443f Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Tue, 14 Apr 2020 12:07:46 +0200 Subject: NO_PYTHON documented --- README.md | 3 ++- docs/Changelog.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 302a8acf..f14ccd36 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ $ sudo make install Note that "make distrib" also builds llvm_mode, qemu_mode, unicorn_mode and more. If you just want plain afl then do "make all", however compiling and using at least llvm_mode is highly recommended for much better results - -hence in this case +hence in this case ```shell $ make source-only @@ -178,6 +178,7 @@ These build options exist: * STATIC - compile AFL++ static * ASAN_BUILD - compiles with memory sanitizer for debug purposes * PROFILING - compile with profiling information (gprof) +* NO_PYTHON - disable python support * AFL_NO_X86 - if compiling on non-intel/amd platforms * LLVM_CONFIG - if your distro doesn't use the standard name for llvm-config (e.g. Debian) diff --git a/docs/Changelog.md b/docs/Changelog.md index 2c8bff3d..e1e558b7 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -26,6 +26,7 @@ sending a mail to . - more refactoring - if AFL_CC/AFL_CXX is set but empty afl compilers did fail, fixed (this bug is in vanilla afl too) + - added NO_PYTHON flag to disable python support when building afl-fuzz ### Version ++2.63c (release): -- cgit 1.4.1