diff options
author | Robert Scott <code@humanleg.org.uk> | 2021-08-22 17:37:13 +0100 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2021-08-22 17:54:26 +0100 |
commit | b2c07a1a290a22ab202b7f140122b9382edf0f27 (patch) | |
tree | 15556c1c3f6e41dd81ce5acf679d68dd37be9a00 /pkgs/tools/archivers | |
parent | 42f8c46335960a82c39f8ae10f03a17e755f41d3 (diff) |
cpio: add patch for CVE-2021-38185
Diffstat (limited to 'pkgs/tools/archivers')
-rw-r--r-- | pkgs/tools/archivers/cpio/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/archivers/cpio/default.nix b/pkgs/tools/archivers/cpio/default.nix index 5b88e10b1c37a..c172edd1fd981 100644 --- a/pkgs/tools/archivers/cpio/default.nix +++ b/pkgs/tools/archivers/cpio/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl }: +{ lib, stdenv, fetchurl, fetchpatch }: let version = "2.13"; @@ -11,6 +11,14 @@ in stdenv.mkDerivation { sha256 = "0vbgnhkawdllgnkdn6zn1f56fczwk0518krakz2qbwhxmv2vvdga"; }; + patches = [ + (fetchpatch { + name = "CVE-2021-38185.patch"; + url = "https://git.savannah.gnu.org/cgit/cpio.git/patch/?id=dd96882877721703e19272fe25034560b794061b"; + sha256 = "0vmr0qjwj2ldnzsvccl105ckwgx3ssvn9mp3f27ss0kiyigrzz32"; + }) + ]; + preConfigure = if stdenv.isCygwin then '' sed -i gnu/fpending.h -e 's,include <stdio_ext.h>,,' '' else null; |