git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #31909 from andir/clamav

clamav: apply patch for CVE-2017-6420

commit98d12e681c94efbaee7fe99691cd2284a9ffbcab authorJörg Thalheim <Mic92@users.noreply.github.com> dateWed 22 Nov 2017, 08:20 (9 years ago) parent565d92af01acd4
1 file changed+9−1
pkgs/tools/security/clamav/default.nix+9−1
pkgs/tools/security/clamav/default.nix+9−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl
1+{ stdenv, fetchurl, fetchpatch, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl
22, libmilter, pcre }:
33
44stdenv.mkDerivation rec {
@@ -10,6 +10,14 @@ stdenv.mkDerivation rec {
1010 sha256 = "0yh2q318bnmf2152g2h1yvzgqbswn0wvbzb8p4kf7v057shxcyqn";
1111 };
1212
13+ patches = [
14+ (fetchpatch {
15+ name = "CVE-2017-6420.patch";
16+ url = "https://github.com/vrtadmin/clamav-devel/commit/dfc00cd3301a42b571454b51a6102eecf58407bc.patch";
17+ sha256 = "08w3p3a4pmi0cmcmyxkagsbn3g0jgx1jqlc34pn141x0qzrlqr60";
18+ })
19+ ];
20+
1321 # don't install sample config files into the absolute sysconfdir folder
1422 postPatch = ''
1523 substituteInPlace Makefile.in --replace ' etc ' ' '