lua-5.1: fix CVE-2014-5461 by upstream+Debian patch
This commit is contained in:
parent
2c25f3854f
commit
15cb79e48e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, readline }:
|
{ stdenv, fetchurl, fetchpatch, readline }:
|
||||||
|
|
||||||
let
|
let
|
||||||
dsoPatch = fetchurl {
|
dsoPatch = fetchurl {
|
||||||
@ -18,7 +18,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ readline ];
|
buildInputs = [ readline ];
|
||||||
|
|
||||||
patches = if stdenv.isDarwin then [ ./5.1.darwin.patch ] else [ dsoPatch ];
|
patches = (if stdenv.isDarwin then [ ./5.1.darwin.patch ] else [ dsoPatch ])
|
||||||
|
++ [(fetchpatch {
|
||||||
|
name = "CVE-2014-5461.patch";
|
||||||
|
url = "http://anonscm.debian.org/cgit/pkg-lua/lua5.1.git/plain/debian/patches/"
|
||||||
|
+ "0004-Fix-stack-overflow-in-vararg-functions.patch?id=b75a2014db2ad65683521f7bb295bfa37b48b389";
|
||||||
|
sha256 = "05i5vh53d9i6dy11ibg9i9qpwz5hdm0s8bkx1d9cfcvy80cm4c7f";
|
||||||
|
})];
|
||||||
|
|
||||||
configurePhase =
|
configurePhase =
|
||||||
if stdenv.isDarwin
|
if stdenv.isDarwin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user