git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #113929 from mweinelt/screen/cve-2021-26937

screen: apply patch for CVE-2021-26937

commit7b9655158eb91c8fdd0d9f97a6a8ee812f2b1ead authorMartin Weinelt <mweinelt@users.noreply.github.com> dateMon 22 Feb 2021, 23:27 (6 years ago) parent47589adc3b5487
1 file changed+8−1
pkgs/tools/misc/screen/default.nix+8−1
pkgs/tools/misc/screen/default.nix+8−1
@@ -16,7 +16,14 @@ stdenv.mkDerivation rec {
1616 "--enable-colors256"
1717 ];
1818
19− patches = lib.optional stdenv.hostPlatform.isMusl
19+ patches = [
20+ (fetchpatch {
21+ # Fixes denial of services in encoding.c, remove > 4.8.0
22+ name = "CVE-2021-26937.patch";
23+ url = "https://salsa.debian.org/debian/screen/-/raw/master/debian/patches/99_CVE-2021-26937.patch";
24+ sha256 = "05f3p1c7s83nccwkhmavjzgaysxnvq41c7jffs31ra65kcpabqy0";
25+ })
26+ ] ++ lib.optional stdenv.hostPlatform.isMusl
2027 (fetchpatch {
2128 url = "https://gist.githubusercontent.com/yujinakayama/4608863/raw/76b9f89af5e5a2e97d9a0f36aac989fb56cf1447/gistfile1.diff";
2229 sha256 = "0f9bf83p8zdxaa1pr75jyf5g8xr3r8kv7cyzzbpraa1q4j15ss1p";