From 0b6c6a9c9f555a33d681290cce77510460457c03 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 24 Mar 2008 00:04:42 +0000 Subject: lpd: fix OOM vulnerability (was eating arbitrarily large commands) --- shell/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/hush.c b/shell/hush.c index eb0633b18..545367cb6 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); } -- cgit v1.2.3