From 2c7fba0a9c5ffdf9a040be0f8441d9fef77aa0c7 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 6 Feb 2020 19:37:23 +0000 Subject: unicorn mode build fix for FreeBSD. --- unicorn_mode/build_unicorn_support.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/unicorn_mode/build_unicorn_support.sh b/unicorn_mode/build_unicorn_support.sh index 582e0669..a04cca6b 100755 --- a/unicorn_mode/build_unicorn_support.sh +++ b/unicorn_mode/build_unicorn_support.sh @@ -81,6 +81,7 @@ if [ "$PLT" = "FreeBSD" ]; then MAKECMD=gmake CORES=`sysctl -n hw.ncpu` TARCMD=gtar + PYTHONBIN=python3 fi if [ "$PLT" = "NetBSD" ] || [ "$PLT" = "OpenBSD" ]; then -- cgit 1.4.1 From 369b6d2f670a7cb8a268855810006d92590b1528 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Fri, 7 Feb 2020 09:52:30 +0100 Subject: docker fix --- Dockerfile | 2 +- TODO | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7bb60610..396954ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:eoan MAINTAINER David Carlier LABEL "about"="AFLplusplus docker image" -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get -y install \ --no-install-suggests --no-install-recommends \ automake \ bison \ diff --git a/TODO b/TODO index e935eafa..d153f1b4 100644 --- a/TODO +++ b/TODO @@ -7,6 +7,7 @@ Makefile: afl-fuzz: - sync_fuzzers(): only masters sync from all, slaves only sync from master + - ascii_only mode gcc_plugin: - laf-intel -- cgit 1.4.1 From 7734a9229e5470a2c1c2f67702d4c299cd7a6264 Mon Sep 17 00:00:00 2001 From: hexcoder Date: Fri, 7 Feb 2020 13:04:49 +0100 Subject: track afl-cmin test changes --- test/test.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/test/test.sh b/test/test.sh index 57b50eb4..1709468e 100755 --- a/test/test.sh +++ b/test/test.sh @@ -265,12 +265,22 @@ test -e ../afl-clang-fast -a -e ../split-switches-pass.so && { } test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" || { echo 000000000000000000000000 > in/in2 + echo 111 > in/in3 mkdir -p in2 - ../afl-cmin -i in -o in2 -- ./test-instr.plain >/dev/null - CNT=`ls in2/ | wc -l` + ../afl-cmin -i in -o in2 -- ./test-instr.plain >/dev/null 2>&1 # why is afl-forkserver writing to stderr? + CNT=`ls in2/* 2>/dev/null | wc -l` case "$CNT" in - *1) $ECHO "$GREEN[+] afl-cmin correctly minimized the number of testcases" ;; - *) $ECHO "$RED[!] afl-cmin did not correctly minimize the number of testcases" + *2) $ECHO "$GREEN[+] afl-cmin correctly minimized the number of testcases" ;; + *) $ECHO "$RED[!] afl-cmin did not correctly minimize the number of testcases ($CNT)" + CODE=1 + ;; + esac + rm -f in2/in* + AFL_PATH=`pwd`/.. ../afl-cmin.bash -i in -o in2 -- ./test-instr.plain >/dev/null + CNT=`ls in2/* 2>/dev/null | wc -l` + case "$CNT" in + *2) $ECHO "$GREEN[+] afl-cmin.bash correctly minimized the number of testcases" ;; + *) $ECHO "$RED[!] afl-cmin.bash did not correctly minimize the number of testcases ($CNT)" CODE=1 ;; esac -- cgit 1.4.1