Commit e2872f56 authored by David S. Miller's avatar David S. Miller

[ELF]: Fix bug in previous change, forgot to advance ei_index over AT_NULL entry.

parent 5fd43b38
......@@ -202,6 +202,9 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr * exec,
memset(&elf_info[ei_index], 0,
sizeof current->mm->saved_auxv - ei_index * sizeof elf_info[0]);
/* And advance past the AT_NULL entry. */
ei_index += 2;
sp = STACK_ADD(p, ei_index);
items = (argc + 1) + (envc + 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment