aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/security/honggfuzz/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/security/honggfuzz/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/security/honggfuzz/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/security/honggfuzz/default.nix b/nixpkgs/pkgs/tools/security/honggfuzz/default.nix
new file mode 100644
index 00000000000..71146b15ea3
--- /dev/null
+++ b/nixpkgs/pkgs/tools/security/honggfuzz/default.nix
@@ -0,0 +1,51 @@
+{ stdenv, fetchFromGitHub, callPackage, makeWrapper
+, clang, llvm, libbfd, libopcodes, libunwind, libblocksruntime
+}:
+
+let
+ honggfuzz = stdenv.mkDerivation rec {
+ pname = "honggfuzz";
+ version = "2.3.1";
+
+ src = fetchFromGitHub {
+ owner = "google";
+ repo = pname;
+ rev = "${version}";
+ sha256 = "0dcl5a5jykgfmnfj42vl7kah9k26wg38l2g6yfh5pssmlf0nax33";
+ };
+
+ postPatch = ''
+ substituteInPlace hfuzz_cc/hfuzz-cc.c \
+ --replace '"clang' '"${clang}/bin/clang'
+ '';
+
+ enableParallelBuilding = true;
+
+ nativeBuildInputs = [ makeWrapper ];
+ buildInputs = [ llvm ];
+ propagatedBuildInputs = [ libbfd libopcodes libunwind libblocksruntime ];
+
+ makeFlags = [ "PREFIX=$(out)" ];
+
+ meta = {
+ description = "A security oriented, feedback-driven, evolutionary, easy-to-use fuzzer";
+ longDescription = ''
+ Honggfuzz is a security oriented, feedback-driven, evolutionary,
+ easy-to-use fuzzer with interesting analysis options. It is
+ multi-process and multi-threaded, blazingly fast when the persistent
+ fuzzing mode is used and has a solid track record of uncovered security
+ bugs.
+
+ Honggfuzz uses low-level interfaces to monitor processes and it will
+ discover and report hijacked/ignored signals from crashes. Feed it
+ a simple corpus directory (can even be empty for the feedback-driven
+ fuzzing), and it will work its way up, expanding it by utilizing
+ feedback-based coverage metrics.
+ '';
+ homepage = "https://honggfuzz.dev/";
+ license = stdenv.lib.licenses.asl20;
+ platforms = ["x86_64-linux"];
+ maintainers = with stdenv.lib.maintainers; [ cpu ];
+ };
+ };
+in honggfuzz