Unverified Commit 4f391fd1 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

Merge pull request #249263 from NickCao/rspamd

rspamd: add patch fixing memory leak
parents 9429436a ea87ec9b
Loading
Loading
Loading
Loading
+29 −3
Original line number Diff line number Diff line
{ stdenv, lib, fetchFromGitHub, cmake, perl
, glib, luajit, openssl, pcre, pkg-config, sqlite, ragel, icu
, hyperscan, jemalloc, blas, lapack, lua, libsodium
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch2
, cmake
, perl
, glib
, luajit
, openssl
, pcre
, pkg-config
, sqlite
, ragel
, icu
, hyperscan
, jemalloc
, blas
, lapack
, lua
, libsodium
, withBlas ? true
, withHyperscan ? stdenv.isx86_64
, withLuaJIT ? stdenv.isx86_64
@@ -20,6 +37,15 @@ stdenv.mkDerivation rec {
    hash = "sha256-GuWuJK73RE+cS8451m+bcmpZNQEzmZtexm19xgdDQeU=";
  };

  patches = [
    # Fix leak in `gzip` function
    # https://github.com/rspamd/rspamd/issues/4564
    (fetchpatch2 {
      url = "https://github.com/rspamd/rspamd/commit/ffbab4fbf218514845b8e5209aec044621b1f460.patch";
      hash = "sha256-ltkC/mZcYmGoSFILaTTRB/UWSn36flEbuJP4Buys05Y=";
    })
  ];

  hardeningEnable = [ "pie" ];

  nativeBuildInputs = [ cmake pkg-config perl ];