diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2023-01-09 10:58:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 10:58:08 +0000 |
commit | a2f49001d4c6b98d75fe4cec877e594c518c7d7c (patch) | |
tree | 575d795bf713a1c317fd35319d1f9c3461c17dc3 | |
parent | 6301410a8f0fe9f629c18ce0d403eded66c4cc4b (diff) | |
parent | 09a9af3d1bf0db2d8d6ae5d2fff84f126e4af9cd (diff) |
Merge pull request #209710 from NixOS/backport-209481-to-release-22.11
[Backport release-22.11] libconfuse: add patch for CVE-2022-40320
-rw-r--r-- | pkgs/development/libraries/libconfuse/default.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libconfuse/default.nix b/pkgs/development/libraries/libconfuse/default.nix index 7545fe9617cc..91a5a2f26f87 100644 --- a/pkgs/development/libraries/libconfuse/default.nix +++ b/pkgs/development/libraries/libconfuse/default.nix @@ -1,4 +1,10 @@ -{ lib, stdenv, fetchFromGitHub, autoreconfHook, flex }: +{ lib +, stdenv +, fetchFromGitHub +, fetchpatch +, autoreconfHook +, flex +}: stdenv.mkDerivation rec { pname = "libconfuse"; @@ -11,6 +17,18 @@ stdenv.mkDerivation rec { owner = "martinh"; }; + patches = [ + (fetchpatch { + name = "CVE-2022-40320.patch"; + urls = [ + "https://sources.debian.org/data/main/libc/libconfuse/3.3-3/debian/patches/CVE-2022-40320.patch" + # files on sources.debian.org can disappear + "https://web.archive.org/web/20230107133212/https://sources.debian.org/data/main/libc/libconfuse/3.3-3/debian/patches/CVE-2022-40320.patch" + ]; + sha256 = "sha256-ftfE9JFz4nyRSOb2xHb9BAtgWn5Yv2WLm4RegDLtiBw="; + }) + ]; + postPatch = '' substituteInPlace tests/Makefile.am \ --replace 'TESTS += empty_string' "" \ |