> Date: Tue, 12 Nov 2013 07:21:19 +0100 > From: Matthieu Herrb <[email protected]> > > On Mon, Nov 11, 2013 at 11:22:56PM +0100, Mark Kettenis wrote: > > From: Mark Kettenis <[email protected]> > > > > A char array on the stack is not guaranteed to have more than byte > > alignment. This means that casting it to a 'struct cmsghdr' and > > accessing its members may result in unaligned access. This will > > generate SIGBUS on strict alignment architectures like OpenBSD/sparc64. > > The solution is to use a union to force proper alignment. > > > > Signed-off-by: Mark Kettenis <[email protected]> > > Reviewed-by: Matthieu Herrb <[email protected]>
Given that the equivalent diff for xcb has been merged, iss Matthieu's approval enough for me to push this? _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
