Unverified Commit 2997d4bb authored by Felix Bühler's avatar Felix Bühler Committed by GitHub
Browse files

Merge pull request #263867 from chivay/honggfuzz

honggfuzz: 2.5 -> 2.6
parents 51c1c544 4c8c08b3
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -4,21 +4,20 @@
, makeWrapper
, clang
, llvm
# TODO: switch to latest versions when 2.6 release is out to include
#   https://github.com/google/honggfuzz/commit/90fdf81006614664ef05e5e3c6f94d91610f11b2
, libbfd_2_38, libopcodes_2_38
, libbfd
, libopcodes
, libunwind
, libblocksruntime }:

stdenv.mkDerivation rec {
  pname = "honggfuzz";
  version = "2.5";
  version = "2.6";

  src = fetchFromGitHub {
    owner = "google";
    repo = pname;
    rev = version;
    sha256 = "sha256-TkyUKmiiSAfCnfQhSOUxuce6+dRyMmHy7vFK59jPIxM=";
    sha256 = "sha256-/ra6g0qjjC8Lo8/n2XEbwnZ95yDHcGhYd5+TTvQ6FAc=";
  };

  postPatch = ''
@@ -30,7 +29,10 @@ stdenv.mkDerivation rec {

  nativeBuildInputs = [ makeWrapper ];
  buildInputs = [ llvm ];
  propagatedBuildInputs = [ libbfd_2_38 libopcodes_2_38 libunwind libblocksruntime ];
  propagatedBuildInputs = [ libbfd libopcodes libunwind libblocksruntime ];

  # Fortify causes build failures: 'str*' defined both normally and as 'alias' attribute
  hardeningDisable = [ "fortify" ];

  makeFlags = [ "PREFIX=$(out)" ];

+2 −2
Original line number Diff line number Diff line
@@ -1590,8 +1590,8 @@ with pkgs;
  };
  honggfuzz = callPackage ../tools/security/honggfuzz {
    clang = clang_12;
    llvm = llvm_12;
    clang = clang_16;
    llvm = llvm_16;
  };
  aflplusplus = callPackage ../tools/security/aflplusplus {