From 07df1e303419a642b96750411af99b586d0ea5a0 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Wed, 7 Aug 2019 20:34:57 +0200 Subject: [PATCH] bugfix 'echo -n' is not POSIX, use input redirection from /dev/null --- Makefile | 2 +- llvm_mode/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 47b06785..9e92de81 100644 --- a/Makefile +++ b/Makefile @@ -158,7 +158,7 @@ ifndef AFL_NO_X86 test_build: afl-gcc afl-as afl-showmap @echo "[*] Testing the CC wrapper and instrumentation output..." unset AFL_USE_ASAN AFL_USE_MSAN AFL_CC; AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. ./$(TEST_CC) $(CFLAGS) test-instr.c -o test-instr $(LDFLAGS) - echo -n| ./afl-showmap -m none -q -o .test-instr0 ./test-instr + ./afl-showmap -m none -q -o .test-instr0 ./test-instr to troubleshoot the issue."; echo; exit 1; fi diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile index 80ffb38a..d01fbbdf 100644 --- a/llvm_mode/Makefile +++ b/llvm_mode/Makefile @@ -174,7 +174,7 @@ endif test_build: $(PROGS) @echo "[*] Testing the CC wrapper and instrumentation output..." unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO; AFL_QUIET=1 AFL_PATH=. AFL_CC=$(CC) AFL_LLVM_LAF_SPLIT_SWITCHES=1 AFL_LLVM_LAF_TRANSFORM_COMPARES=1 AFL_LLVM_LAF_SPLIT_COMPARES=1 ../afl-clang-fast $(CFLAGS) ../test-instr.c -o test-instr $(LDFLAGS) - echo -n| ../afl-showmap -m none -q -o .test-instr0 ./test-instr + ../afl-showmap -m none -q -o .test-instr0 ./test-instr to troubleshoot the issue."; echo; exit 1; fi