void-packages/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
Érico Rolim 62ca689e15 qemu-user-static: update to 5.2.0.
Move from libglib-static to libglib-devel, which now includes static
versions of each library.

Pick up tricks from qemu for cross compilation.

The patch being applied fixes #23557.

Add comment to qemu about qemu-user-static. It's important to update the
two packages together, since they share the patches folder.
2021-02-11 15:22:01 -03:00

15 lines
509 B
Diff

Source: https://github.com/void-linux/void-packages/issues/23557
diff --git linux-user/syscall.c linux-user/syscall.c
index 945fc25..8d8b68a 100644
--- linux-user/syscall.c
+++ linux-user/syscall.c
@@ -3071,7 +3071,7 @@ static abi_long do_sendrecvmsg_locked(int fd, struct target_msghdr *msgp,
int flags, int send)
{
abi_long ret, len;
- struct msghdr msg;
+ struct msghdr msg = {0};
abi_ulong count;
struct iovec *vec;
abi_ulong target_vec;