ensure that buffer for decoding auxv at startup is initially zero
authorRich Felker <dalias@aerifal.cx>
Mon, 8 Oct 2012 15:20:31 +0000 (11:20 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 8 Oct 2012 15:20:31 +0000 (11:20 -0400)
src/env/__libc_start_main.c

index 07613a522b01cba6609295b59fe30835d4be17dd..e350fdb83364daf76dbc88096b5215042ba2b46c 100644 (file)
@@ -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);