mcrypt: fix several security issues (close #12194)

CVE-2012-4409, CVE-2012-4426, CVE-2012-4527

Patches taken from https://gitweb.gentoo.org/repo/gentoo.git/tree/app-crypt/mcrypt/files
This commit is contained in:
Jakob Gillich
2016-01-07 10:10:30 +01:00
committed by Vladimír Čunát
parent 9265d097d5
commit 4f4eebbded
5 changed files with 209 additions and 5 deletions
+7 -5
View File
@@ -1,16 +1,18 @@
{ stdenv, fetchurl, libmcrypt, libmhash }:
stdenv.mkDerivation rec {
version = "2.6.8";
name = "mcrypt-${version}";
src = fetchurl {
url = "mirror://sourceforge/mcrypt/MCrypt/${version}/${name}.tar.gz";
sha256 = "5145aa844e54cca89ddab6fb7dd9e5952811d8d787c4f4bf27eb261e6c182098";
};
buildInputs = [libmcrypt libmhash];
patches = [ ./format-string.patch ./overflow.patch ./segv.patch ./sprintf.patch ];
buildInputs = [ libmcrypt libmhash ];
meta = {
description = "Replacement for old UNIX crypt(1)";
longDescription = ''