tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
rspamd: add patch fixing memory leak
Nick Cao
2 years ago
ea87ec9b
eb2b0b09
+29
-3
1 changed file
expand all
collapse all
unified
split
pkgs
servers
mail
rspamd
default.nix
+29
-3
pkgs/servers/mail/rspamd/default.nix
···
1
-
{ stdenv, lib, fetchFromGitHub, cmake, perl
2
-
, glib, luajit, openssl, pcre, pkg-config, sqlite, ragel, icu
3
-
, hyperscan, jemalloc, blas, lapack, lua, libsodium
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
4
, withBlas ? true
5
, withHyperscan ? stdenv.isx86_64
6
, withLuaJIT ? stdenv.isx86_64
···
19
rev = version;
20
hash = "sha256-GuWuJK73RE+cS8451m+bcmpZNQEzmZtexm19xgdDQeU=";
21
};
0
0
0
0
0
0
0
0
0
22
23
hardeningEnable = [ "pie" ];
24
···
1
+
{ stdenv
2
+
, lib
3
+
, fetchFromGitHub
4
+
, fetchpatch2
5
+
, cmake
6
+
, perl
7
+
, glib
8
+
, luajit
9
+
, openssl
10
+
, pcre
11
+
, pkg-config
12
+
, sqlite
13
+
, ragel
14
+
, icu
15
+
, hyperscan
16
+
, jemalloc
17
+
, blas
18
+
, lapack
19
+
, lua
20
+
, libsodium
21
, withBlas ? true
22
, withHyperscan ? stdenv.isx86_64
23
, withLuaJIT ? stdenv.isx86_64
···
36
rev = version;
37
hash = "sha256-GuWuJK73RE+cS8451m+bcmpZNQEzmZtexm19xgdDQeU=";
38
};
39
+
40
+
patches = [
41
+
# Fix leak in `gzip` function
42
+
# https://github.com/rspamd/rspamd/issues/4564
43
+
(fetchpatch2 {
44
+
url = "https://github.com/rspamd/rspamd/commit/ffbab4fbf218514845b8e5209aec044621b1f460.patch";
45
+
hash = "sha256-ltkC/mZcYmGoSFILaTTRB/UWSn36flEbuJP4Buys05Y=";
46
+
})
47
+
];
48
49
hardeningEnable = [ "pie" ];
50