pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/honggfuzz-git: import honggfuzz-1.6



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Aug 5 03:35:02 2018 +0200
Changeset:	81e8f2fef9817d0149b0706d953080824137dfc2

Added Files:
	honggfuzz-git/DESCR
	honggfuzz-git/Makefile
	honggfuzz-git/PLIST
	honggfuzz-git/distinfo
	honggfuzz-git/patches/patch-hfuzz__cc_hfuzz-cc.c

Log Message:
wip/honggfuzz-git: import honggfuzz-1.6

A security oriented, feedback-driven, evolutionary, easy-to-use fuzzer
with interesting analysis options.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=81e8f2fef9817d0149b0706d953080824137dfc2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 honggfuzz-git/DESCR                              |  2 +
 honggfuzz-git/Makefile                           | 17 +++++
 honggfuzz-git/PLIST                              |  7 ++
 honggfuzz-git/distinfo                           |  7 ++
 honggfuzz-git/patches/patch-hfuzz__cc_hfuzz-cc.c | 97 ++++++++++++++++++++++++
 5 files changed, 130 insertions(+)

diffs:
diff --git a/honggfuzz-git/DESCR b/honggfuzz-git/DESCR
new file mode 100644
index 0000000000..a1e817dcde
--- /dev/null
+++ b/honggfuzz-git/DESCR
@@ -0,0 +1,2 @@
+A security oriented, feedback-driven, evolutionary, easy-to-use fuzzer
+with interesting analysis options.
diff --git a/honggfuzz-git/Makefile b/honggfuzz-git/Makefile
new file mode 100644
index 0000000000..237bfcecde
--- /dev/null
+++ b/honggfuzz-git/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+DISTNAME=	honggfuzz-1.6
+CATEGORIES=	devel
+
+GIT_REPOSITORIES=	honggfuzz
+GIT_REPO.honggfuzz=	https://github.com/google/honggfuzz.git
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/google/honggfuzz/
+COMMENT=	Security oriented fuzzer based on code coverage
+LICENSE=	apache-2.0
+
+USE_TOOLS+=	bash:run gmake
+
+.include "../../lang/libBlocksRuntime/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/honggfuzz-git/PLIST b/honggfuzz-git/PLIST
new file mode 100644
index 0000000000..4496955945
--- /dev/null
+++ b/honggfuzz-git/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+bin/hfuzz-cc
+bin/hfuzz-clang
+bin/hfuzz-clang++
+bin/hfuzz-g++
+bin/hfuzz-gcc
+bin/honggfuzz
diff --git a/honggfuzz-git/distinfo b/honggfuzz-git/distinfo
new file mode 100644
index 0000000000..067768e088
--- /dev/null
+++ b/honggfuzz-git/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (honggfuzz-1.6.tar.gz) = e6ab2a411fe8726e57815209d6fb1b6f4268538c
+RMD160 (honggfuzz-1.6.tar.gz) = 8ef15a0e38cd09a26f82a3683da6a363257ddce1
+SHA512 (honggfuzz-1.6.tar.gz) = db4f0f31d36080db983068435be82b3e1132145e0bad5c4e8e6504563f10ce66df4f977fbd0a9f1cbcd262e479f635a68ab7c1df70d23e8437164734ea562c90
+Size (honggfuzz-1.6.tar.gz) = 79322453 bytes
+SHA1 (patch-hfuzz__cc_hfuzz-cc.c) = 1351c251a5aa58cfbe510de6f92362cc4c465e4e
diff --git a/honggfuzz-git/patches/patch-hfuzz__cc_hfuzz-cc.c b/honggfuzz-git/patches/patch-hfuzz__cc_hfuzz-cc.c
new file mode 100644
index 0000000000..c616192d87
--- /dev/null
+++ b/honggfuzz-git/patches/patch-hfuzz__cc_hfuzz-cc.c
@@ -0,0 +1,97 @@
+$NetBSD$
+
+--- hfuzz_cc/hfuzz-cc.c.orig	2018-04-19 13:37:38.000000000 +0000
++++ hfuzz_cc/hfuzz-cc.c
+@@ -102,6 +102,13 @@ static bool isLDMode(int argc, char** ar
+     return true;
+ }
+ 
++static int
++hf_execvp(const char *file, char *argv[])
++{
++	argv[0] = (char *)file;
++	return execvp(file, argv);
++}
++
+ static int execCC(int argc, char** argv) {
+     if (useASAN()) {
+         argv[argc++] = "-fsanitize=address";
+@@ -117,14 +124,14 @@ static int execCC(int argc, char** argv)
+     if (isCXX) {
+         const char* cxx_path = getenv("HFUZZ_CXX_PATH");
+         if (cxx_path != NULL) {
+-            execvp(cxx_path, argv);
++            hf_execvp(cxx_path, argv);
+             PLOG_E("execvp('%s')", cxx_path);
+             return EXIT_FAILURE;
+         }
+     } else {
+         const char* cc_path = getenv("HFUZZ_CC_PATH");
+         if (cc_path != NULL) {
+-            execvp(cc_path, argv);
++            hf_execvp(cc_path, argv);
+             PLOG_E("execvp('%s')", cc_path);
+             return EXIT_FAILURE;
+         }
+@@ -132,37 +139,37 @@ static int execCC(int argc, char** argv)
+ 
+     if (isGCC) {
+         if (isCXX) {
+-            execvp("g++", argv);
+-            execvp("gcc", argv);
++            hf_execvp("g++", argv);
++            hf_execvp("gcc", argv);
+         } else {
+-            execvp("gcc", argv);
++            hf_execvp("gcc", argv);
+         }
+     } else {
+         if (isCXX) {
+             /* Try the default one, then newest ones (hopefully) first */
+-            execvp("clang++", argv);
+-            execvp("clang++-devel", argv);
+-            execvp("clang++-10.0", argv);
+-            execvp("clang++-9.0", argv);
+-            execvp("clang++-8.0", argv);
+-            execvp("clang++-7.0", argv);
+-            execvp("clang++-7", argv);
+-            execvp("clang++-6.0", argv);
+-            execvp("clang++-5.0", argv);
+-            execvp("clang++-4.0", argv);
+-            execvp("clang", argv);
++            hf_execvp("clang++", argv);
++            hf_execvp("clang++-devel", argv);
++            hf_execvp("clang++-10.0", argv);
++            hf_execvp("clang++-9.0", argv);
++            hf_execvp("clang++-8.0", argv);
++            hf_execvp("clang++-7.0", argv);
++            hf_execvp("clang++-7", argv);
++            hf_execvp("clang++-6.0", argv);
++            hf_execvp("clang++-5.0", argv);
++            hf_execvp("clang++-4.0", argv);
++            hf_execvp("clang", argv);
+         } else {
+             /* Try the default one, then newest ones (hopefully) first */
+-            execvp("clang", argv);
+-            execvp("clang-devel", argv);
+-            execvp("clang-10.0", argv);
+-            execvp("clang-9.0", argv);
+-            execvp("clang-8.0", argv);
+-            execvp("clang-7.0", argv);
+-            execvp("clang-7", argv);
+-            execvp("clang-6.0", argv);
+-            execvp("clang-5.0", argv);
+-            execvp("clang-4.0", argv);
++            hf_execvp("clang", argv);
++            hf_execvp("clang-devel", argv);
++            hf_execvp("clang-10.0", argv);
++            hf_execvp("clang-9.0", argv);
++            hf_execvp("clang-8.0", argv);
++            hf_execvp("clang-7.0", argv);
++            hf_execvp("clang-7", argv);
++            hf_execvp("clang-6.0", argv);
++            hf_execvp("clang-5.0", argv);
++            hf_execvp("clang-4.0", argv);
+         }
+     }
+ 


Home | Main Index | Thread Index | Old Index