pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import devel/afl++
Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Fri Oct 17 13:33:26 2025 +0200
Changeset: a67e43374775846cea0bf191a511f8127a0263c5
Modified Files:
Makefile
Added Files:
afl++/DESCR
afl++/Makefile
afl++/PLIST
afl++/distinfo
afl++/patches/patch-examples_argv__fuzzing_Makefile
afl++/patches/patch-examples_socket__fuzzing_Makefile
Log Message:
Import devel/afl++
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a67e43374775846cea0bf191a511f8127a0263c5
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
afl++/DESCR | 4 +
afl++/Makefile | 40 ++++++++
afl++/PLIST | 107 +++++++++++++++++++++
afl++/distinfo | 7 ++
.../patches/patch-examples_argv__fuzzing_Makefile | 17 ++++
.../patch-examples_socket__fuzzing_Makefile | 17 ++++
7 files changed, 193 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 45188382ec..c3e410849d 100644
--- a/Makefile
+++ b/Makefile
@@ -141,6 +141,7 @@ SUBDIR+= aegis-devel
SUBDIR+= aegisub
SUBDIR+= aespipe
SUBDIR+= afflib
+SUBDIR+= afl++
SUBDIR+= afl-cov
SUBDIR+= agile
SUBDIR+= ags
diff --git a/afl++/DESCR b/afl++/DESCR
new file mode 100644
index 0000000000..bb95a84145
--- /dev/null
+++ b/afl++/DESCR
@@ -0,0 +1,4 @@
+afl++ is an upgrade to the American Fuzzy Lop (afl) fuzzer, created initially
+to incorporate all the best features developed in the years for the fuzzers in
+the AFL family but was not merged in AFL as it is not updated since November
+2017.
diff --git a/afl++/Makefile b/afl++/Makefile
new file mode 100644
index 0000000000..055e7d700e
--- /dev/null
+++ b/afl++/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.6 2024/10/14 06:45:35 wiz Exp $
+
+DISTNAME= AFLplusplus-2.62c
+PKGNAME= ${DISTNAME:C/AFLplusplus/afl++/}
+PKGREVISION= 2
+GITHUB_PROJECT= AFLplusplus
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=AFLplusplus/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/AFLplusplus/AFLplusplus/
+COMMENT= American Fuzzy Lop ++, a fuzzing tool for finding bugs by random input
+LICENSE= apache-2.0
+
+PYTHON_VERSIONS_ACCEPTED= 27
+
+.include "../../lang/python/pyversion.mk"
+PYTHON_INCLUDE_CMD= python${PYVERSSUFFIX}-config --includes
+PYTHON_VERSION_CMD= python${PYVERSSUFFIX} --version
+
+PYTHON_LIB_CMD= python${PYVERSSUFFIX}-config --ldflags
+
+MAKE_FLAGS+= PYTHON_INCLUDE=${PYTHON_INCLUDE_CMD:sh:Q}
+MAKE_FLAGS+= PYTHON_VERSION=${PYTHON_VERSION_CMD:sh:Q}
+MAKE_FLAGS+= PYTHON_LIB=${PYTHON_LIB_CMD:sh:Q}
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= bash:run gmake
+REPLACE_SH+= afl-plot
+REPLACE_BASH+= afl-cmin
+REPLACE_BASH+= afl-cmin.bash
+
+.include "../../mk/bsd.prefs.mk"
+
+PLIST_VARS+= amd64
+.if ${MACHINE_ARCH} == "x86_64"
+PLIST.amd64= yes
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/afl++/PLIST b/afl++/PLIST
new file mode 100644
index 0000000000..dc72bcd91e
--- /dev/null
+++ b/afl++/PLIST
@@ -0,0 +1,107 @@
+@comment $NetBSD: PLIST,v 1.2 2022/04/17 07:34:46 nia Exp $
+bin/afl-analyze
+bin/afl-clang
+bin/afl-clang++
+bin/afl-cmin
+bin/afl-cmin.bash
+bin/afl-fuzz
+bin/afl-g++
+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
+${PLIST.amd64}lib/afl/argvfuzz32.so
+${PLIST.amd64}lib/afl/argvfuzz64.so
+lib/afl/as
+${PLIST.amd64}lib/afl/socketfuzz32.so
+${PLIST.amd64}lib/afl/socketfuzz64.so
+man/man8/afl-analyze.8
+man/man8/afl-as.8
+man/man8/afl-cmin.8
+man/man8/afl-cmin.bash.8
+man/man8/afl-fuzz.8
+man/man8/afl-gcc.8
+man/man8/afl-gotcpu.8
+man/man8/afl-plot.8
+man/man8/afl-showmap.8
+man/man8/afl-system-config.8
+man/man8/afl-tmin.8
+man/man8/afl-whatsup.8
+share/afl/dictionaries/README.md
+share/afl/dictionaries/gif.dict
+share/afl/dictionaries/html_tags.dict
+share/afl/dictionaries/jpeg.dict
+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
+share/afl/dictionaries/xml.dict
+share/afl/testcases/README.md
+share/afl/testcases/archives/common/ar/small_archive.a
+share/afl/testcases/archives/common/bzip2/small_archive.bz2
+share/afl/testcases/archives/common/cab/small_archive.cab
+share/afl/testcases/archives/common/compress/small_archive.Z
+share/afl/testcases/archives/common/cpio/small_archive.cpio
+share/afl/testcases/archives/common/gzip/small_archive.gz
+share/afl/testcases/archives/common/lzo/small_archive.lzo
+share/afl/testcases/archives/common/rar/small_archive.rar
+share/afl/testcases/archives/common/tar/small_archive.tar
+share/afl/testcases/archives/common/xz/small_archive.xz
+share/afl/testcases/archives/common/zip/small_archive.zip
+share/afl/testcases/archives/exotic/arj/small_archive.arj
+share/afl/testcases/archives/exotic/lha/small_archive.lha
+share/afl/testcases/archives/exotic/lrzip/small_archive.lrz
+share/afl/testcases/archives/exotic/lzip/small_archive.lz
+share/afl/testcases/archives/exotic/lzma/small_archive.lzma
+share/afl/testcases/archives/exotic/rzip/small_archive.rz
+share/afl/testcases/archives/exotic/zoo/small_archive.zoo
+share/afl/testcases/images/bmp/not_kitty.bmp
+share/afl/testcases/images/gif/not_kitty.gif
+share/afl/testcases/images/ico/not_kitty.ico
+share/afl/testcases/images/jp2/not_kitty.jp2
+share/afl/testcases/images/jpeg/not_kitty.jpg
+share/afl/testcases/images/jxr/not_kitty.jxr
+share/afl/testcases/images/png/not_kitty.png
+share/afl/testcases/images/png/not_kitty_alpha.png
+share/afl/testcases/images/png/not_kitty_gamma.png
+share/afl/testcases/images/png/not_kitty_icc.png
+share/afl/testcases/images/tiff/not_kitty.tiff
+share/afl/testcases/images/webp/not_kitty.webp
+share/afl/testcases/multimedia/h264/small_movie.mp4
+share/afl/testcases/others/elf/small_exec.elf
+share/afl/testcases/others/js/small_script.js
+share/afl/testcases/others/pcap/small_capture.pcap
+share/afl/testcases/others/pdf/small.pdf
+share/afl/testcases/others/rtf/small_document.rtf
+share/afl/testcases/others/sql/simple_queries.sql
+share/afl/testcases/others/text/hello_world.txt
+share/afl/testcases/others/xml/small_document.xml
+share/doc/afl/Changelog.md
+share/doc/afl/INSTALL.md
+share/doc/afl/PATCHES.md
+share/doc/afl/QuickStartGuide.md
+share/doc/afl/README.MOpt.md
+share/doc/afl/README.md
+share/doc/afl/README.radamsa.md
+share/doc/afl/binaryonly_fuzzing.md
+share/doc/afl/custom_mutator.md
+share/doc/afl/env_variables.md
+share/doc/afl/historical_notes.md
+share/doc/afl/ideas.md
+share/doc/afl/life_pro_tips.md
+share/doc/afl/notes_for_asan.md
+share/doc/afl/parallel_fuzzing.md
+share/doc/afl/perf_tips.md
+share/doc/afl/power_schedules.md
+share/doc/afl/python_mutators.md
+share/doc/afl/sister_projects.md
+share/doc/afl/status_screen.md
+share/doc/afl/technical_details.md
diff --git a/afl++/distinfo b/afl++/distinfo
new file mode 100644
index 0000000000..dedc0d7a26
--- /dev/null
+++ b/afl++/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.3 2021/10/26 10:14:13 nia Exp $
+
+BLAKE2s (AFLplusplus-2.62c.tar.gz) = 382f2f46f8fe607b5a45895e00e7455a1194e3553b891bd5b2d7cd1460281b2a
+SHA512 (AFLplusplus-2.62c.tar.gz) = 0214845af0acc889c5f80bbfc6f50b662cb608c4c0959061075db29ee60bdaca7b11499368b44597674e1a11c49e60725abe2f919a7ddf7850c410019902eb40
+Size (AFLplusplus-2.62c.tar.gz) = 1272000 bytes
+SHA1 (patch-examples_argv__fuzzing_Makefile) = 04032386558713ca4d142964f63cc6820ae010c8
+SHA1 (patch-examples_socket__fuzzing_Makefile) = 46b5474f61029d5ea4a4449cfad6de0d6f5c8d66
diff --git a/afl++/patches/patch-examples_argv__fuzzing_Makefile b/afl++/patches/patch-examples_argv__fuzzing_Makefile
new file mode 100644
index 0000000000..607f288434
--- /dev/null
+++ b/afl++/patches/patch-examples_argv__fuzzing_Makefile
@@ -0,0 +1,17 @@
+$NetBSD: patch-examples_argv__fuzzing_Makefile,v 1.1 2020/04/17 17:51:09 wiz Exp $
+
+Honor CFLAGS and LDFLAGS.
+
+--- examples/argv_fuzzing/Makefile.orig 2020-02-28 00:13:28.000000000 +0000
++++ examples/argv_fuzzing/Makefile
+@@ -17,8 +17,8 @@ PREFIX ?= /usr/local
+ BIN_PATH = $(PREFIX)/bin
+ HELPER_PATH = $(PREFIX)/lib/afl
+
+-CFLAGS = -fPIC -Wall -Wextra
+-LDFLAGS = -shared
++CFLAGS += -fPIC -Wall -Wextra
++LDFLAGS += -shared
+
+ ifneq "$(filter Linux GNU%,$(shell uname))" ""
+ LDFLAGS += -ldl
diff --git a/afl++/patches/patch-examples_socket__fuzzing_Makefile b/afl++/patches/patch-examples_socket__fuzzing_Makefile
new file mode 100644
index 0000000000..810cbf7b44
--- /dev/null
+++ b/afl++/patches/patch-examples_socket__fuzzing_Makefile
@@ -0,0 +1,17 @@
+$NetBSD: patch-examples_socket__fuzzing_Makefile,v 1.1 2020/04/17 17:51:09 wiz Exp $
+
+Honor CFLAGS and LDFLAGS.
+
+--- examples/socket_fuzzing/Makefile.orig 2020-02-28 00:13:28.000000000 +0000
++++ examples/socket_fuzzing/Makefile
+@@ -15,8 +15,8 @@ PREFIX ?= /usr/local
+ BIN_PATH = $(PREFIX)/bin
+ HELPER_PATH = $(PREFIX)/lib/afl
+
+-CFLAGS = -fPIC -Wall -Wextra
+-LDFLAGS = -shared
++CFLAGS += -fPIC -Wall -Wextra
++LDFLAGS += -shared
+
+ ifneq "$(filter Linux GNU%,$(shell uname))" ""
+ LDFLAGS += -ldl
Home |
Main Index |
Thread Index |
Old Index