From bce378d215b6891b0c504867cee376274b021af6 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 8 Jun 2019 15:00:42 +0100 Subject: [PATCH] exim: add patch for CVE-2019-10149 --- pkgs/servers/mail/exim/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/mail/exim/default.nix b/pkgs/servers/mail/exim/default.nix index 07623a80f243..f4bdb1c30538 100644 --- a/pkgs/servers/mail/exim/default.nix +++ b/pkgs/servers/mail/exim/default.nix @@ -1,4 +1,4 @@ -{ coreutils, db, fetchurl, openssl, pcre, perl, pkgconfig, stdenv +{ coreutils, db, fetchurl, openssl, pcre, perl, pkgconfig, stdenv, fetchpatch , enableLDAP ? false, openldap , enableMySQL ? false, mysql, zlib , enableAuthDovecot ? false, dovecot @@ -13,6 +13,16 @@ stdenv.mkDerivation rec { sha256 = "066ip7a5lqfn9rcr14j4nm0kqysw6mzvbbb0ip50lmfm0fqsqmzc"; }; + patches = [ + (fetchpatch { + name = "CVE-2019-10149.patch"; + url = https://git.exim.org/exim.git/patch/d740d2111f189760593a303124ff6b9b1f83453d; + stripLen = 1; + includes = ["src/deliver.c"]; + sha256 = "0va872q2d3nizr001hfs1yaa4w5lffppk4hkim2ywcpq8ap5kxfk"; + }) + ]; + nativeBuildInputs = [ pkgconfig ]; buildInputs = [ coreutils db openssl perl pcre ] ++ stdenv.lib.optional enableLDAP openldap