From 4e0ab7d2eb5491ac6aef3bc7f35ce2d5ee0f1f0a Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Thu, 9 Sep 2021 23:15:02 +0200 Subject: [PATCH] qemu: Fix padding in host_sigevent The struct should be padded to 64 bytes but instead it was padded to (sizeof(int) * (64 - 2 * sizeof(int) + sizeof(union sigval))). Assuming both int and pointer types are 64 bits, that leads to a padding of 448 bytes. --- srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch index c51fca6cf432..3b0754b478bf 100644 --- a/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch +++ b/srcpkgs/qemu/patches/musl-fix-sigevent-and-sigval_t.patch @@ -10,7 +10,7 @@ + int sigev_signo; + int sigev_notify; + union { -+ int _pad[64-sizeof(int) * 2 + sizeof(union sigval)]; ++ int _pad[(64 - (sizeof(int) * 2 + sizeof(union sigval))) / sizeof(int)]; + int _tid; + } _sigev_un; +};