Syscall gethostname fix
PATCH 1/1 Syscall gethostname fix
Patch in the attachment.
qemu/linux-user/syscall.c +1 -1
@@ -875,7 +875,7 @@ static long do_getsockname(int fd, target_ulong target_addr, target_ulong target_addrlen) {socklen_t addrlen =tget32 (target_addrlen); -void *addr =alloca (target_addrlen); +void *addr =alloca (addrlen);long ret; ret =get_errno (getsockname (fd, addr, &addrlen));
Quoted 1 line · Kirill A. Shutemov
Patch in the attachment.
addrlen bytes should be allocated, not target_addrlen. It's typo I think.
Quoted 21 lines
qemu/linux-user/syscall.c +1
-1@@ -875,7 +875,7 @@ static long do_getsockname(int fd, target_ulong target_addr, target_ulong target_addrlen) {socklen_t addrlen =tget32 (target_addrlen); -void *addr =alloca (target_addrlen); +void *addr =alloca (addrlen);long ret; ret =get_errno (getsockname (fd, addr, &addrlen));_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel