From f2b1f1af83e96f8f98fbf2a5c663d8d058f2a66d Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 8 Oct 2012 11:20:31 -0400 Subject: [PATCH] ensure that buffer for decoding auxv at startup is initially zero --- src/env/__libc_start_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env/__libc_start_main.c b/src/env/__libc_start_main.c index 07613a52..e350fdb8 100644 --- a/src/env/__libc_start_main.c +++ b/src/env/__libc_start_main.c @@ -8,7 +8,7 @@ void __init_security(size_t *); void __init_libc(char **envp) { - size_t i, *auxv, aux[AUX_CNT]; + size_t i, *auxv, aux[AUX_CNT] = { 0 }; __environ = envp; for (i=0; envp[i]; i++); libc.auxv = auxv = (void *)(envp+i+1); -- 2.25.1