From 7370dddd6ff376a968e901a2b08cbf53d02edc39 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 20 Oct 2019 00:18:59 +0100 Subject: [PATCH] putty: add patch for CVE-2019-17069 --- pkgs/applications/networking/remote/putty/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/remote/putty/default.nix b/pkgs/applications/networking/remote/putty/default.nix index 3b7db7075bb5..a9c42db8265d 100644 --- a/pkgs/applications/networking/remote/putty/default.nix +++ b/pkgs/applications/networking/remote/putty/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, autoconf, automake, pkgconfig, libtool +{ stdenv, lib, fetchurl, fetchpatch, autoconf, automake, pkgconfig, libtool , gtk2, halibut, ncurses, perl }: @@ -14,6 +14,14 @@ stdenv.mkDerivation rec { sha256 = "1f66iss0kqk982azmxbk4xfm2i1csby91vdvly6cr04pz3i1r4rg"; }; + patches = [ + (fetchpatch { + name = "CVE-2019-17069.patch"; + url = "https://git.tartarus.org/?p=simon/putty.git;a=patch;h=69201ad8936fe0ff1b8723b7a43accb5e9f1c888"; + sha256 = "1gblwc2r26ikb26b22f2r61b2lkjf80pbclfb5dhhkkqal6kbvga"; + }) + ]; + preConfigure = lib.optionalString stdenv.hostPlatform.isUnix '' perl mkfiles.pl ( cd doc ; make );