less: Apply patch for CVE-2022-46663
https://www.openwall.com/lists/oss-security/2023/02/07/7
This commit is contained in:
parent
505dac8a8c
commit
5277b187cc
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, ncurses, lessSecure ? false }:
|
||||
{ lib, stdenv, fetchurl, fetchpatch, ncurses, lessSecure ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "less";
|
||||
@ -9,6 +9,15 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "02f2d9d6hyf03va28ip620gjc6rf4aikmdyk47h7frqj18pbx6m6";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# https://github.com/advisories/GHSA-5xw7-xf7p-gm82
|
||||
name = "CVE-2022-46663.patch";
|
||||
url = "https://github.com/gwsw/less/commit/a78e1351113cef564d790a730d657a321624d79c.patch";
|
||||
hash = "sha256-gWgCzoMt1WyVJVKYzkMq8HfaTlU1XUtC8fvNFUQT0sI=";
|
||||
})
|
||||
];
|
||||
|
||||
configureFlags = [ "--sysconfdir=/etc" ] # Look for ‘sysless’ in /etc.
|
||||
++ lib.optionals lessSecure [ "--with-secure" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user