提交 a39ca6a1 编写于 作者: P Pavel Zbitskiy 提交者: Michael Tokarev

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: NPavel Zbitskiy <pavel.zbitskiy@gmail.com>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 fe54b249
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册