Skip to content

Commit

Permalink
Fix for execve syscall, by Kirill A. Shutemov.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3763 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
ths committed Dec 2, 2007
1 parent e96e204 commit 03aa197
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions linux-user/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -3187,18 +3187,18 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
argc = 0;
guest_argp = arg2;
for (gp = guest_argp; ; gp++) {
if (get_user_ual(guest_argp, gp))
if (get_user_ual(addr, gp))
goto efault;
if (!guest_argp)
if (!addr)
break;
argc++;
}
envc = 0;
guest_envp = arg3;
for (gp = guest_envp; ; gp++) {
if (get_user_ual(guest_envp, gp))
if (get_user_ual(addr, gp))
goto efault;
if (!guest_envp)
if (!addr)
break;
envc++;
}
Expand Down

0 comments on commit 03aa197

Please sign in to comment.