This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][BZ #16549] Add sanity check for condvar alignment.


On Sun, Feb 16, 2014 at 12:55:22PM +0100, OndÅej BÃlka wrote:
> That is most of time not problem as a function will either work or
> crash.

This is not entirely true. On archs where the low bits are ignored in
pointers, passing a misaligned address will result in misinterpreting
(if reading) and corrupting (if writing) adjacent data.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]