diff options
author | Denis Vlasenko | 2008-03-24 00:04:42 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-03-24 00:04:42 +0000 |
commit | 0b6c6a9c9f555a33d681290cce77510460457c03 (patch) | |
tree | 0d5f95c0cc0a2f6945aa97fa50266e8b8288da75 /shell/hush.c | |
parent | a79428998d76c1758ca12546e5db945a0cd64518 (diff) | |
download | busybox-0b6c6a9c9f555a33d681290cce77510460457c03.zip busybox-0b6c6a9c9f555a33d681290cce77510460457c03.tar.gz |
lpd: fix OOM vulnerability (was eating arbitrarily large commands)
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c index eb0633b..545367c 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -1061,7 +1061,7 @@ static int builtin_read(char **argv) char *string; const char *name = argv[1] ? argv[1] : "REPLY"; - string = xmalloc_reads(STDIN_FILENO, xasprintf("%s=", name)); + string = xmalloc_reads(STDIN_FILENO, xasprintf("%s=", name), NULL); return set_local_var(string, 0); } |