clamav: add patch for CVE-2021-1405

using upstream master patch, just as debian have done
This commit is contained in:
Robert Scott
2021-04-21 19:35:42 +01:00
parent d202d4e491
commit 7d8cf3e270

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig
{ stdenv, fetchurl, fetchpatch, pkgconfig
, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl, libmilter, pcre2
, libmspack, systemd, Foundation
}:
@@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "06rrzyrhnr0rswryijpbbzywr6387rv8qjq8sb8cl3h2d1m45ggf";
};
patches = [
(fetchpatch {
name = "CVE-2021-1405.patch";
url = "https://github.com/Cisco-Talos/clamav-devel/commit/0c1ec30f9a292b0a5eca4aaaa651150aa5712d6d.patch";
sha256 = "0ygqiv9ldwhhnlwxkz91bab4hnzfwczf96mqm1bsa4gz9wmshlks";
})
];
# don't install sample config files into the absolute sysconfdir folder
postPatch = ''
substituteInPlace Makefile.in --replace ' etc ' ' '