luajit*: patch CVE-2019-19391

- upstream argues that this kind of problems can't be called
  vulnerabilities
- the upstream patch is trivial, so why not fix the bug
- nixpkgs master uses git versions already containing that commit
Fixes #90875 (roundup ticket).
This commit is contained in:
Vladimír Čunát
2020-06-18 15:16:54 +02:00
parent 799a3b4024
commit 4e48231cee

View File

@@ -1,4 +1,5 @@
{ stdenv, fetchurl, buildPackages
, fetchpatch
, name ? "luajit-${version}"
, isStable
, sha256
@@ -20,6 +21,13 @@ stdenv.mkDerivation rec {
luaversion = "5.1";
patches = [
(fetchpatch {
name = "cve-2019-19391.patch";
url = "https://github.com/LuaJIT/LuaJIT/commit/0cd643d7c.diff";
sha256 = "1ya5h6r3mi7mkjy6bj1hjbl43j3lwh4phmi5q792rrz8az64hnjy";
})
];
postPatch = ''
substituteInPlace Makefile --replace ldconfig :
'';