[haiku-commits] Re: haiku: hrev48990 - headers/os/support headers/posix src/system/libroot/posix/malloc_debug
- From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
- To: haiku-commits@xxxxxxxxxxxxx
- Date: Sat, 11 Apr 2015 20:58:22 +0200
On 04/11/2015 07:05 PM, Michael Lotz wrote:
You brought up valid points during this discussion, the one of
std::max_align_t was pretty much immediately addressed, the one of
unaligned access breaking atomics is a new one and shall be addressed in
a future commit.
It's actually not that a big deal; since GCC properly aligns and pads
structures, you will rarely get into problems (otherwise you would have
surely noticed already).
That's why I think the current solution is pretty much okay until we
have something like the mentioned AddressSanitizer.
Even those tools won't help much with stack allocations, and
in-structure out-of-bounds access, though. Luckily enough, coverity
should at least cover the latter.
Bye,
Axel.
Other related posts: