Skip to content

Commit

Permalink
zziplib: patch CVE-2018-17828
Browse files Browse the repository at this point in the history
Fixes #61961
Close #63189
vcunat amended some nitpicks into the original commit.
  • Loading branch information
mmahut authored and vcunat committed Jun 16, 2019
1 parent 9e480c5 commit 3aa8f94
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/libraries/zziplib/default.nix
@@ -1,4 +1,4 @@
{ docbook_xml_dtd_412, fetchurl, stdenv, perl, python2, zip, xmlto, zlib }:
{ docbook_xml_dtd_412, fetchurl, stdenv, perl, python2, zip, xmlto, zlib, fetchpatch }:

stdenv.mkDerivation rec {
name = "zziplib-${version}";
Expand All @@ -9,6 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "0i052a7shww0fzsxrdp3rd7g4mbzx7324a8ysbc0br7frpblcql4";
};

patches = [
(fetchpatch {
name = "CVE-2018-17828.patch";
url = "https://github.com/gdraheim/zziplib/commit/f609ae8971f3c0ce6.diff";
sha256 = "0jhiz4fgr93wzh6q03avn95b2nsf6402jaki6hxirxyhs5v9ahry";
})
];
postPatch = ''
sed -i -e s,--export-dynamic,, configure
'';
Expand Down

0 comments on commit 3aa8f94

Please sign in to comment.