putty: add patch for CVE-2019-17069

This commit is contained in:
Robert Scott
2019-10-20 00:18:59 +01:00
parent e97f19a82e
commit 7370dddd6f

View File

@@ -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 );