Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in pax-utils: Makefile
Date: Sat, 28 Feb 2015 22:49:19
Message-Id: 20150228224913.EC6B612C3B@oystercatcher.gentoo.org
1 vapier 15/02/28 22:49:13
2
3 Modified: Makefile
4 Log:
5 add a fuzz target
6
7 Revision Changes Path
8 1.88 pax-utils/Makefile
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/Makefile?rev=1.88&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/Makefile?rev=1.88&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/Makefile?r1=1.87&r2=1.88
13
14 Index: Makefile
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/pax-utils/Makefile,v
17 retrieving revision 1.87
18 retrieving revision 1.88
19 diff -u -r1.87 -r1.88
20 --- Makefile 21 Feb 2015 19:30:45 -0000 1.87
21 +++ Makefile 28 Feb 2015 22:49:13 -0000 1.88
22 @@ -1,6 +1,6 @@
23 # Copyright 2003-2006 Ned Ludd <solar@××××××.net>
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-projects/pax-utils/Makefile,v 1.87 2015/02/21 19:30:45 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-projects/pax-utils/Makefile,v 1.88 2015/02/28 22:49:13 vapier Exp $
27 ####################################################################
28
29 check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null > /dev/null 2>&1; \
30 @@ -76,6 +76,12 @@
31 @-chpax -permsx $(ELF_TARGETS)
32 @-paxctl -permsx $(ELF_TARGETS)
33
34 +fuzz: clean
35 + $(MAKE) AFL_HARDEN=1 CC=afl-gcc all
36 + @rm -rf findings
37 + @printf '\nNow run:\n%s\n' \
38 + "afl-fuzz -t 100 -i tests/fuzz/small/ -o findings/ ./scanelf -s '*' -axetrnibSDIYZB @@"
39 +
40 compile.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(CPPFLAGS-$<) -o $@ -c $<
41
42 ifeq ($(V),)