bash: Fix for CVE-2014-7169

This commit is contained in:
Eelco Dolstra 2014-09-25 14:40:44 +02:00
parent 1c20eba035
commit 0a0ebd8c44
2 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,13 @@
http://www.openwall.com/lists/oss-security/2014/09/25/10
*** ../bash-20140912/parse.y 2014-08-26 15:09:42.000000000 -0400
--- parse.y 2014-09-24 22:47:28.000000000 -0400
***************
*** 2959,2962 ****
--- 2959,2964 ----
word_desc_to_read = (WORD_DESC *)NULL;
+ eol_ungetc_lookahead = 0;
+
current_token = '\n'; /* XXX */
last_read_token = '\n';

View File

@ -27,14 +27,14 @@ stdenv.mkDerivation rec {
patchFlags = "-p0";
patches =
let
(let
patch = nr: sha256:
fetchurl {
url = "mirror://gnu/bash/bash-4.2-patches/bash42-${nr}";
inherit sha256;
};
in
import ./bash-4.2-patches.nix patch;
import ./bash-4.2-patches.nix patch) ++ [ ./cve-2014-7169.patch ];
crossAttrs = {
configureFlags = baseConfigureFlags +