Files
ladybird/Userland/Libraries/LibC
Daniel Bertalan b9f30c6f2a Everywhere: Fix some alignment issues
When creating uninitialized storage for variables, we need to make sure
that the alignment is correct. Fixes a KUBSAN failure when running
kernels compiled with Clang.

In `Syscalls/socket.cpp`, we can simply use local variables, as
`sockaddr_un` is a POD type.

Along with moving the `alignas` specifier to the correct member,
`AK::Optional`'s internal buffer has been made non-zeroed by default.
GCC emitted bogus uninitialized memory access warnings, so we now use
`__builtin_launder` to tell the compiler that we know what we are doing.
This might disable some optimizations, but judging by how GCC failed to
notice that the memory's initialization is dependent on `m_has_value`,
I'm not sure that's a bad thing.
2021-07-03 01:56:31 +04:30
..
2021-06-06 22:16:11 +02:00
2021-06-29 20:03:36 +02:00
2021-05-30 19:37:32 +02:00
2021-05-14 23:32:10 +02:00
2021-06-13 17:05:03 +01:00
2021-06-18 16:35:15 +02:00
2021-05-08 19:14:21 +02:00
2021-05-30 08:41:17 +02:00
2021-07-01 12:05:59 +02:00
2021-05-14 23:32:10 +02:00
2021-05-30 14:56:50 +01:00
2021-06-21 12:21:03 +02:00
2021-06-04 10:39:41 +02:00
2021-06-04 10:39:41 +02:00
2021-05-25 17:36:02 +02:00
2021-06-04 10:39:41 +02:00
2021-06-04 10:39:41 +02:00
2021-05-30 14:56:50 +01:00