@@ -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 ' ' '