Update to afl 2.57b from google/afl.

While this is not really the official continuation of afl, it has a few
fixes for recent LLVM. If lcamtuf releases a new version, we should
consider switching back to the original.

Discussed with daniel and jsg
ok jsg
This commit is contained in:
tb 2022-04-18 10:46:15 +00:00
parent bcf9612f0c
commit 8eb92856d9
4 changed files with 33 additions and 10 deletions

View File

@ -1,13 +1,17 @@
ONLY_FOR_ARCHS= i386 amd64
V= 2.57b
COMMENT= instrumented fuzzer
DISTNAME= afl-2.52b
EXTRACT_SUFX= .tgz
PKGNAME= afl-$V
CATEGORIES= devel
REVISION = 0
HOMEPAGE= http://lcamtuf.coredump.cx/afl
MASTER_SITES= ${HOMEPAGE}/releases/
HOMEPAGE= https://lcamtuf.coredump.cx/afl
# This is not the official continuation of AFL but it is currently more active.
# If lcamtuf ever releases a new version, consider switching back to it.
GH_ACCOUNT= google
GH_PROJECT= AFL
GH_TAGNAME= v$V
MAINTAINER= Jonathan Gray <jsg@openbsd.org>
# Apache 2.0
@ -18,4 +22,7 @@ FAKE_FLAGS= PREFIX="${TRUEPREFIX}"
TEST_TARGET= test_build
WANTLIB= c
pre-configure:
sed -i 's,%s/README,&.md,' ${WRKSRC}/afl-{tmin,showmap,fuzz,analyze}.c
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (afl-2.52b.tgz) = Q2FLS5HAFNOe8IbFzIT/XwaAEMJkwsBb8ZnfYImM4EU=
SIZE (afl-2.52b.tgz) = 835907
SHA256 (AFL-2.57b.tar.gz) = bwWmUVwHq+Sfbykr0TyWAEzB4Ba9oMPMnCdp3UPxY+4=
SIZE (AFL-2.57b.tar.gz) = 839871

View File

@ -1,5 +1,6 @@
--- Makefile.orig Sat Aug 6 09:12:53 2016
+++ Makefile Sat Aug 6 14:07:48 2016
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -18,7 +18,7 @@ VERSION = $(shell grep '^\#define VERSION ' config
PREFIX ?= /usr/local
@ -18,3 +19,12 @@
ifndef AFL_NO_X86
@@ -133,7 +133,7 @@ endif
set -e; for i in afl-g++ afl-clang afl-clang++; do ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/$$i; done
install -m 755 afl-as $${DESTDIR}$(HELPER_PATH)
ln -sf afl-as $${DESTDIR}$(HELPER_PATH)/as
- install -m 644 docs/README docs/ChangeLog docs/*.txt $${DESTDIR}$(DOC_PATH)
+ install -m 644 README.md docs/ChangeLog docs/*.txt $${DESTDIR}$(DOC_PATH)
cp -r testcases/ $${DESTDIR}$(MISC_PATH)
cp -r dictionaries/ $${DESTDIR}$(MISC_PATH)

View File

@ -24,6 +24,7 @@ share/afl/dictionaries/js.dict
share/afl/dictionaries/json.dict
share/afl/dictionaries/pdf.dict
share/afl/dictionaries/png.dict
share/afl/dictionaries/regexp.dict
share/afl/dictionaries/sql.dict
share/afl/dictionaries/tiff.dict
share/afl/dictionaries/webp.dict
@ -103,6 +104,11 @@ share/afl/testcases/others/pcap/
share/afl/testcases/others/pcap/small_capture.pcap
share/afl/testcases/others/pdf/
share/afl/testcases/others/pdf/small.pdf
share/afl/testcases/others/regexp/
share/afl/testcases/others/regexp/reg1
share/afl/testcases/others/regexp/reg2
share/afl/testcases/others/regexp/reg3
share/afl/testcases/others/regexp/reg4
share/afl/testcases/others/rtf/
share/afl/testcases/others/rtf/small_document.rtf
share/afl/testcases/others/sql/
@ -114,7 +120,7 @@ share/afl/testcases/others/xml/small_document.xml
share/doc/afl/
share/doc/afl/ChangeLog
share/doc/afl/QuickStartGuide.txt
share/doc/afl/README
share/doc/afl/README.md
share/doc/afl/env_variables.txt
share/doc/afl/historical_notes.txt
share/doc/afl/life_pro_tips.txt