diff options
author | Arnaud Patard <arnaud.patard@rtp-net.org> | 2009-06-19 10:44:45 +0300 |
---|---|---|
committer | Riku Voipio <riku.voipio@iki.fi> | 2009-07-08 17:01:08 +0300 |
commit | 917507b01efea8017bfcb4188ac696612e363e72 (patch) | |
tree | 328cc648835a03192dee8620f033d82db56ea763 /linux-user/alpha | |
parent | fd4d81dd04b4e606ce40a41d66368ba77c77c753 (diff) |
linux-user: check some parameters for some socket syscalls.
This patch is fixing following issues :
- commit 8fea36025b9d6d360ff3b78f88a84ccf221807e8 was applied to
do_getsockname instead of do_accept.
- Some syscalls were not checking properly the memory addresses passed
as argument
- Add check before syscalls made for cases like do_getpeername() where
we're using the address parameter after doing the syscall
- Fix do_accept to return EINVAL instead of EFAULT when parameters
invalid to match with linux behaviour
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'linux-user/alpha')
0 files changed, 0 insertions, 0 deletions