summary refs log tree commit diff
path: root/pkgs/development/libraries/zlog
diff options
context:
space:
mode:
authorThomas Gerbet <thomas@gerbet.me>2022-05-27 14:56:30 +0200
committerThomas Gerbet <thomas@gerbet.me>2022-05-28 21:42:02 +0200
commita0a5f90ef209f058ee19d7cb5693faec2bfe56a4 (patch)
tree20ad13a117119e5fcae4e3f37a54ac1620561e28 /pkgs/development/libraries/zlog
parentd01774baa3e358c8395fc98588452d5b1f0c9a37 (diff)
downloadnixpkgs-a0a5f90ef209f058ee19d7cb5693faec2bfe56a4.tar
nixpkgs-a0a5f90ef209f058ee19d7cb5693faec2bfe56a4.tar.gz
nixpkgs-a0a5f90ef209f058ee19d7cb5693faec2bfe56a4.tar.bz2
nixpkgs-a0a5f90ef209f058ee19d7cb5693faec2bfe56a4.tar.lz
nixpkgs-a0a5f90ef209f058ee19d7cb5693faec2bfe56a4.tar.xz
nixpkgs-a0a5f90ef209f058ee19d7cb5693faec2bfe56a4.tar.zst
nixpkgs-a0a5f90ef209f058ee19d7cb5693faec2bfe56a4.zip
zlog: fixes CVE-2021-43521
Diffstat (limited to 'pkgs/development/libraries/zlog')
-rw-r--r--pkgs/development/libraries/zlog/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/zlog/default.nix b/pkgs/development/libraries/zlog/default.nix
index 99163ae5dc6..82c08b46bc8 100644
--- a/pkgs/development/libraries/zlog/default.nix
+++ b/pkgs/development/libraries/zlog/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch }:
 
 stdenv.mkDerivation rec {
   version = "1.2.15";
@@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
     sha256 = "10hzifgpml7jm43y6v8c8q0cr9ziyx9qxznafxyw6glhnlqnb7pb";
   };
 
+  patches = [
+    (fetchpatch {
+      name = "CVE-2021-43521.patch";
+      url = "https://github.com/HardySimpson/zlog/commit/a5be8b3a8ddc498de4ad041757285136a55d97e3.patch";
+      sha256 = "sha256-igHXUHN2Ke8Gb5AeDrDwG2aUNRpispgqVlGuASute+8=";
+    })
+  ];
+
   makeFlags = [ "PREFIX=${placeholder "out"}" ];
 
   meta = with lib; {