diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-02-28 22:49:13 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-02-28 22:49:13 +0000 |
commit | 7fb00a4a148f8538c7b32de5d3b8acc6ce1aada3 (patch) | |
tree | 8c8f05174f840eb3bd239dd564eac06a744559cd | |
parent | scanelf: handle corrupted hash chains that have infinite loops (diff) | |
download | pax-utils-7fb00a4a148f8538c7b32de5d3b8acc6ce1aada3.tar.gz pax-utils-7fb00a4a148f8538c7b32de5d3b8acc6ce1aada3.tar.bz2 pax-utils-7fb00a4a148f8538c7b32de5d3b8acc6ce1aada3.zip |
add a fuzz target
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,6 @@ # Copyright 2003-2006 Ned Ludd <solar@linbsd.net> # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-projects/pax-utils/Makefile,v 1.87 2015/02/21 19:30:45 vapier Exp $ +# $Header: /var/cvsroot/gentoo-projects/pax-utils/Makefile,v 1.88 2015/02/28 22:49:13 vapier Exp $ #################################################################### check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \ @@ -76,6 +76,12 @@ debug: clean @-chpax -permsx $(ELF_TARGETS) @-paxctl -permsx $(ELF_TARGETS) +fuzz: clean + $(MAKE) AFL_HARDEN=1 CC=afl-gcc all + @rm -rf findings + @printf '\nNow run:\n%s\n' \ + "afl-fuzz -t 100 -i tests/fuzz/small/ -o findings/ ./scanelf -s '*' -axetrnibSDIYZB @@" + compile.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(CPPFLAGS-$<) -o $@ -c $< ifeq ($(V),) |