lua5_4: fix CVE-2022-28805

main
Robin Gloster 2 years ago committed by Maximilian Bosch
parent 04d41ba8cc
commit 5a7d0b6b34
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
  1. 12
      pkgs/development/interpreters/lua-5/default.nix

@ -7,7 +7,17 @@ rec {
hash = "1yxvjvnbg4nyrdv10bq42gz6dr66pyan28lgzfygqfwy2rv24qgq";
makeWrapper = makeBinaryWrapper;
patches = lib.optional stdenv.isDarwin ./5.4.darwin.patch;
patches = lib.optional stdenv.isDarwin ./5.4.darwin.patch
++ [
(fetchpatch {
name = "CVE-2022-28805.patch";
url = "https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa.patch";
sha256 = "sha256-YTwoolSnRNJIHFPVijSO6ZDw35BG5oWYralZ8qOb9y8=";
stripLen = 1;
extraPrefix = "src/";
excludes = [ "src/testes/*" ];
})
];
};
lua5_4_compat = lua5_4.override({

Loading…
Cancel
Save