about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2014-10-06 20:33:47 +0200
committerMikael Magnusson <mikachu@gmail.com>2014-10-06 20:34:28 +0200
commit49a3086bb67575435251c70ee598e2fd406ef055 (patch)
tree9e2bc984360bfae2b76af6e1258a6fae45b2a320 /Src/exec.c
parent43c8bc81cf96c22726aacf87bb9a0a982f43b32e (diff)
downloadzsh-49a3086bb67575435251c70ee598e2fd406ef055.tar.gz
zsh-49a3086bb67575435251c70ee598e2fd406ef055.tar.xz
zsh-49a3086bb67575435251c70ee598e2fd406ef055.zip
33365: avoid buffer overflow for very long fds in >& fd syntax
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c2
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);