From ac1d4125de3a3c183314eb82ccc21658e13d975f Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Mon, 8 Jan 2018 02:50:53 +0100 Subject: Makefile: fix the afl invocation DEFS must be set in the environment or else will override even DEFS+=... statements in the Makefile. --- Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index ac49788..608184d 100644 --- a/Makefile +++ b/Makefile @@ -107,13 +107,8 @@ servers_charset.h: servers_charset_list make_servers_charset.pl ############################################################################## afl: - $(MAKE) whois \ - CC=afl-gcc AFL_HARDEN=1 \ - HAVE_ICONV=1 DEFS=-DAFL_MODE=1 - -afl2: - $(MAKE) whois \ - HAVE_ICONV=1 DEFS=-DAFL_MODE=1 + -rm -f Makefile.depend + DEFS=-DAFL_MODE=1 AFL_HARDEN=1 $(MAKE) whois CC=afl-gcc HAVE_ICONV=1 afl-run: nice afl-fuzz -i ../afl_in -o ../afl_out -- ./whois -- cgit v1.2.3