summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gerbet <thomas@gerbet.me>2022-05-27 14:56:30 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-05-29 16:55:34 +0000
commit7ab50026da18475d9bc5d62dd3a3d493fdc2d9f6 (patch)
tree7c1284b2baf1aaab48a5a98f5cc9588420488283
parentMerge pull request #175228 from NixOS/backport-175112-to-release-21.11 (diff)
downloadnixpkgs-origin/backport-174933-to-release-21.11.tar.gz
zlog: fixes CVE-2021-43521origin/backport-174933-to-release-21.11
(cherry picked from commit a0a5f90ef209f058ee19d7cb5693faec2bfe56a4)
-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 b115cf7b675b..3da11bec32d8 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; {