git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32192 from 4z3/exim

exim: 4.89 -> 4.89.1

commitd7fb70918041028845740f3a89d8b2694645bfc0 authoradisbladis <adisbladis@gmail.com> dateThu 30 Nov 2017, 17:30 (9 years ago) parentb9347164eb6309
2 files changed+3−51
pkgs/servers/mail/exim/cve-2017-16943.patch−39 pkgs/servers/mail/exim/default.nix+3−12
pkgs/servers/mail/exim/cve-2017-16943.patchdeleted−39
@@ -1,39 +0,0 @@
1−From 4e6ae6235c68de243b1c2419027472d7659aa2b4 Mon Sep 17 00:00:00 2001
2−From: Jeremy Harris <jgh146exb@wizmail.org>
3−Date: Fri, 24 Nov 2017 20:22:33 +0000
4−Subject: [PATCH] Avoid release of store if there have been later allocations.
5− Bug 2199
6−
7−---
8− src/receive.c | 7 ++++---
9− 1 file changed, 4 insertions(+), 3 deletions(-)
10−
11−diff --git a/src/receive.c b/src/receive.c
12−index e7e518a..d9b5001 100644
13−--- a/src/receive.c
14−+++ b/src/receive.c
15−@@ -1810,8 +1810,8 @@ for (;;)
16− (and sometimes lunatic messages can have ones that are 100s of K long) we
17− call store_release() for strings that have been copied - if the string is at
18− the start of a block (and therefore the only thing in it, because we aren't
19−- doing any other gets), the block gets freed. We can only do this because we
20−- know there are no other calls to store_get() going on. */
21−+ doing any other gets), the block gets freed. We can only do this release if
22−+ there were no allocations since the once that we want to free. */
23−
24− if (ptr >= header_size - 4)
25− {
26−@@ -1820,9 +1820,10 @@ for (;;)
27− header_size *= 2;
28− if (!store_extend(next->text, oldsize, header_size))
29− {
30−+ BOOL release_ok = store_last_get[store_pool] == next->text;
31− uschar *newtext = store_get(header_size);
32− memcpy(newtext, next->text, ptr);
33−- store_release(next->text);
34−+ if (release_ok) store_release(next->text);
35− next->text = newtext;
36− }
37− }
38−--
39−1.9.1
pkgs/servers/mail/exim/default.nix+3−12
@@ -1,22 +1,13 @@
1−{ coreutils, fetchurl, db, openssl, pcre, perl, pkgconfig, stdenv, fetchpatch }:
1+{ coreutils, fetchurl, db, openssl, pcre, perl, pkgconfig, stdenv }:
22
33stdenv.mkDerivation rec {
4− name = "exim-4.89";
4+ name = "exim-4.89.1";
55
66 src = fetchurl {
77 url = "http://ftp.exim.org/pub/exim/exim4/${name}.tar.xz";
8− sha256 = "09lndv34jsxwglq5zsh9y4xaqj5g37g9ca4x0zb25fvvm4f0lj8c";
8+ sha256 = "157syn472gnp1x2lrazwdvqsg3zgwyv87952sq5rrnp220m3488s";
99 };
1010
11− patches = [
12− (fetchpatch {
13− name = "CVE-2017-1000369.patch";
14− url = "https://anonscm.debian.org/git/pkg-exim4/exim4.git/plain/debian/patches/79_CVE-2017-1000369.patch?h=4.89-2%2bdeb9u1";
15− sha256 = "0v46zywgkv1rdqhybqqrd0rwkdaj6q1f4x0a3vm9p0wz8vad3023";
16− })
17− ./cve-2017-16943.patch
18− ];
19−
2011 nativeBuildInputs = [ pkgconfig ];
2112 buildInputs = [ coreutils db openssl pcre perl ];
2213