Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2019 06:59:27 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r505008 - in head/security: . afl++
Message-ID:  <201906240659.x5O6xRsU028036@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Jun 24 06:59:27 2019
New Revision: 505008
URL: https://svnweb.freebsd.org/changeset/ports/505008

Log:
  New port: security/afl++
  
  American fuzzy lop is a fuzzer that employs a novel type of compile-time
  instrumentation and genetic algorithms to automatically discover clean,
  interesting test cases that trigger new internal states in the targeted
  binary. This substantially improves the functional coverage for the
  fuzzed code.
  
  afl++ is a fork of afl that incorporates all community patches into
  a single source distribution.
  
  WWW: https://github.com/vanhauser-thc/AFLplusplus
  
  Changes:	https://github.com/vanhauser-thc/AFLplusplus/blob/2.52c/docs/ChangeLog

Added:
  head/security/afl++/
     - copied from r505007, head/security/afl/
Modified:
  head/security/Makefile
  head/security/afl++/Makefile
  head/security/afl++/distinfo
  head/security/afl++/pkg-descr
  head/security/afl++/pkg-plist

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Mon Jun 24 06:50:19 2019	(r505007)
+++ head/security/Makefile	Mon Jun 24 06:59:27 2019	(r505008)
@@ -16,6 +16,7 @@
     SUBDIR += aescrypt
     SUBDIR += aespipe
     SUBDIR += afl
+    SUBDIR += afl++
     SUBDIR += afterglow
     SUBDIR += aide
     SUBDIR += akmos

Modified: head/security/afl++/Makefile
==============================================================================
--- head/security/afl/Makefile	Mon Jun 24 06:50:19 2019	(r505007)
+++ head/security/afl++/Makefile	Mon Jun 24 06:59:27 2019	(r505008)
@@ -2,11 +2,9 @@
 # $FreeBSD$
 
 PORTNAME=	afl
-PORTVERSION=	2.52
-DISTVERSIONSUFFIX=	b
-PORTREVISION=	4
+PORTVERSION=	2.52c
 CATEGORIES=	security
-MASTER_SITES=	http://lcamtuf.coredump.cx/afl/releases/
+PKGNAMESUFFIX=	++
 
 MAINTAINER=	tobik@FreeBSD.org
 COMMENT=	Fast instrumented fuzzer
@@ -20,10 +18,15 @@ ONLY_FOR_ARCHS=	amd64 i386
 ONLY_FOR_ARCHS_REASON=	Uses binary instrumentation
 
 USES=		gmake tar:tgz
+USE_GITHUB=	yes
+GH_ACCOUNT=	vanhauser-thc
+GH_PROJECT=	AFLplusplus
 
 ALL_TARGET=	all libdislocator
 TEST_TARGET=	test_build
 
+CONFLICTS_INSTALL=	afl
+
 OPTIONS_DEFINE=		DEBUG DOCS LLVM
 OPTIONS_DEFAULT=	LLVM
 OPTIONS_SUB=		yes
@@ -78,8 +81,8 @@ post-install:
 		${STAGEDIR}${DOCSDIR}
 
 post-install-LLVM-on:
-	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/afl/afl-llvm-pass.so
-	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/afl-clang-fast
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/afl/*.so \
+		${STAGEDIR}${PREFIX}/bin/afl-clang-fast
 	${INSTALL_DATA} ${WRKSRC}/llvm_mode/README.llvm \
 		${STAGEDIR}${DOCSDIR}
 

Modified: head/security/afl++/distinfo
==============================================================================
--- head/security/afl/distinfo	Mon Jun 24 06:50:19 2019	(r505007)
+++ head/security/afl++/distinfo	Mon Jun 24 06:59:27 2019	(r505008)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1510063235
-SHA256 (afl-2.52b.tgz) = 43614b4b91c014d39ef086c5cc84ff5f068010c264c2c05bf199df60898ce045
-SIZE (afl-2.52b.tgz) = 835907
+TIMESTAMP = 1560577710
+SHA256 (vanhauser-thc-AFLplusplus-2.52c_GH0.tar.gz) = 013b3c56722d48de5ebb50ef0146696cef8ed42e29981988027b80102c7709e6
+SIZE (vanhauser-thc-AFLplusplus-2.52c_GH0.tar.gz) = 851177

Modified: head/security/afl++/pkg-descr
==============================================================================
--- head/security/afl/pkg-descr	Mon Jun 24 06:50:19 2019	(r505007)
+++ head/security/afl++/pkg-descr	Mon Jun 24 06:59:27 2019	(r505008)
@@ -4,4 +4,7 @@ interesting test cases that trigger new internal state
 binary. This substantially improves the functional coverage for the
 fuzzed code.
 
-WWW: http://lcamtuf.coredump.cx/afl/
+afl++ is a fork of afl that incorporates all community patches into
+a single source distribution.
+
+WWW: https://github.com/vanhauser-thc/AFLplusplus

Modified: head/security/afl++/pkg-plist
==============================================================================
--- head/security/afl/pkg-plist	Mon Jun 24 06:50:19 2019	(r505007)
+++ head/security/afl++/pkg-plist	Mon Jun 24 06:59:27 2019	(r505008)
@@ -10,6 +10,7 @@ bin/afl-gcc
 bin/afl-gotcpu
 bin/afl-plot
 bin/afl-showmap
+bin/afl-system-config
 bin/afl-tmin
 bin/afl-whatsup
 lib/afl/afl-as
@@ -18,7 +19,10 @@ lib/afl/afl-as
 %%LLVM%%lib/afl/afl-llvm-rt-64.o
 %%LLVM%%lib/afl/afl-llvm-rt.o
 lib/afl/as
+%%LLVM%%lib/afl/compare-transform-pass.so
 lib/afl/libdislocator.so
+%%LLVM%%lib/afl/split-compares-pass.so
+%%LLVM%%lib/afl/split-switches-pass.so
 %%DATADIR%%/README.dictionaries
 %%DATADIR%%/README.testcases
 %%DATADIR%%/archives/common/ar/small_archive.a
@@ -82,6 +86,7 @@ lib/afl/libdislocator.so
 %%PORTDOCS%%%%DOCSDIR%%/notes_for_asan.txt
 %%PORTDOCS%%%%DOCSDIR%%/parallel_fuzzing.txt
 %%PORTDOCS%%%%DOCSDIR%%/perf_tips.txt
+%%PORTDOCS%%%%DOCSDIR%%/power_schedules.txt
 %%PORTDOCS%%%%DOCSDIR%%/sister_projects.txt
 %%PORTDOCS%%%%DOCSDIR%%/status_screen.txt
 %%PORTDOCS%%%%DOCSDIR%%/technical_details.txt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906240659.x5O6xRsU028036>