diff options
author | Pavel Zbitskiy <pavel.zbitskiy@gmail.com> | 2014-01-11 13:34:11 +0400 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-01-15 23:36:13 +0400 |
commit | a39ca6a124267dcfc6bc5276fff9c4b02e5c2215 (patch) | |
tree | 431f0680e873068ce7af7af35e25bf868c6300bf /linux-user | |
parent | fe54b24930f94bdfbc3d38eccd7adedf35f2f26f (diff) |
linux-user: fixed recvfrom() addrlen
addrlen parameter of recvfrom() of type socklen_t* was read into
variable of type socklen_t, that caused zeroing out of upper 4 bytes
when running s390x on top of x86_64. This patch changes addrlen type
to abi_ulong.
Signed-off-by: Pavel Zbitskiy <pavel.zbitskiy@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index a9ce6ba11c..bc0ac98d4f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2340,7 +2340,7 @@ static abi_long do_socketcall(int num, abi_ulong vptr) size_t len; abi_ulong flags; abi_ulong addr; - socklen_t addrlen; + abi_ulong addrlen; if (get_user_ual(sockfd, vptr) || get_user_ual(msg, vptr + n) |