zlib: patch for CVE-2016-9840, CVE-2016-9841, CVE-9842, CVE-9843

This commit is contained in:
Graham Christensen
2016-12-21 17:15:52 -05:00
parent b0a1028a1a
commit 41f55691a9
5 changed files with 380 additions and 1 deletions
+7 -1
View File
@@ -13,6 +13,13 @@ stdenv.mkDerivation rec {
sha256 = "039agw5rqvqny92cpkrfn243x2gd4xn13hs3xi6isk55d2vqqr9n";
};
patches = [
./CVE-2016-9840.patch
./CVE-2016-9841.patch
./CVE-2016-9842.patch
./CVE-2016-9843.patch
];
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace configure \
--replace '/usr/bin/libtool' 'ar' \
@@ -81,4 +88,3 @@ stdenv.mkDerivation rec {
platforms = platforms.all;
};
}