diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2014-10-06 20:33:47 +0200 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2014-10-06 20:34:28 +0200 |
commit | 49a3086bb67575435251c70ee598e2fd406ef055 (patch) | |
tree | 9e2bc984360bfae2b76af6e1258a6fae45b2a320 | |
parent | 43c8bc81cf96c22726aacf87bb9a0a982f43b32e (diff) | |
download | zsh-49a3086bb67575435251c70ee598e2fd406ef055.tar.gz zsh-49a3086bb67575435251c70ee598e2fd406ef055.tar.xz zsh-49a3086bb67575435251c70ee598e2fd406ef055.zip |
33365: avoid buffer overflow for very long fds in >& fd syntax
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index a5452e56e..d0fadd69a 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3201,7 +3201,7 @@ execcmd(Estate state, int input, int output, int how, int last1) fil = movefd(dup(fd)); } if (fil == -1) { - char fdstr[4]; + char fdstr[DIGBUFSIZE]; closemnodes(mfds); fixfds(save); |