Mach exception thread: Fix msg alignment

msg_in and msg_out were ending up with only 4-byte alignment, which
is undefined behaviour, since they contain 64-bit fields. Probably
doesn't cause any issues, but it showed up in ubsan.
This commit is contained in:
Scott Mansell
2026-08-03 02:03:40 +12:00
parent 4af65cbed0
commit 9c5ff6b248
+2 -2
View File
@@ -134,7 +134,7 @@ static void ExceptionThread(mach_port_t port)
{
Common::SetCurrentThreadName("Mach exception thread");
#pragma pack(4)
struct
struct alignas(8)
{
mach_msg_header_t Head;
NDR_record_t NDR;
@@ -147,7 +147,7 @@ static void ExceptionThread(mach_port_t port)
mach_msg_trailer_t trailer;
} msg_in;
struct
struct alignas(8)
{
mach_msg_header_t Head;
NDR_record_t NDR;