[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PULL 09/11] linux-user: fixed recvfrom() addrlen

From: Michael Tokarev
Subject: [Qemu-trivial] [PULL 09/11] linux-user: fixed recvfrom() addrlen
Date: Thu, 16 Jan 2014 21:35:17 +0400

From: Pavel Zbitskiy <address@hidden>

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 <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
 linux-user/syscall.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a9ce6ba..bc0ac98 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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]