mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
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.
This commit is contained in:
parent
4e4bff7545
commit
dbe9b644ba
2 changed files with 8 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
|||
--- a/linux-user/syscall.c.orig 2015-04-10 07:10:06.305662505 +0000
|
||||
+++ b/linux-user/syscall.c 2015-04-10 07:36:53.801871968 +0000
|
||||
Note: Remove this patch with musl 1.2.2
|
||||
|
||||
--- a/linux-user/syscall.c
|
||||
+++ b/linux-user/syscall.c
|
||||
@@ -5020,9 +5020,20 @@
|
||||
return 0;
|
||||
}
|
||||
|
@ -10,7 +12,7 @@
|
|||
+ int sigev_signo;
|
||||
+ int sigev_notify;
|
||||
+ union {
|
||||
+ int _pad[64-sizeof(int) * 2 + sizeof(union sigval)];
|
||||
+ char _pad[64 - sizeof(int) * 2 - sizeof(union sigval)];
|
||||
+ int _tid;
|
||||
+ } _sigev_un;
|
||||
+};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# This package should be updated together with qemu-user-static
|
||||
pkgname=qemu
|
||||
version=6.1.0
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=configure
|
||||
hostmakedepends="gettext pkg-config perl python3 automake libtool flex
|
||||
python3-Sphinx python3-sphinx_rtd_theme texinfo ninja"
|
||||
|
|
Loading…
Add table
Reference in a new issue