| Submitter | Riku Voipio |
|---|---|
| Date | Aug. 13, 2009, 8:06 p.m. |
| Message ID | <7df850df9ebaa654ce7abc823ea774b9c493e4e8.1250193232.git.riku.voipio@iki.fi> |
| Download | mbox | patch |
| Permalink | /patch/31363/ |
| State | Superseded |
| Headers | show |
Comments
Patch
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f90be71..66a25a0 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5526,6 +5526,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, if (!lock_user_struct(VERIFY_WRITE, target_st, arg2, 0)) goto efault; + memset(target_st, 0, sizeof(*target_st)); __put_user(st.st_dev, &target_st->st_dev); __put_user(st.st_ino, &target_st->st_ino); __put_user(st.st_mode, &target_st->st_mode);