libxtrans: Changes to 'master'

Mark Kettenis kettenis at kemper.freedesktop.org
Thu Nov 21 02:41:55 PST 2013


 Xtranssock.c |   32 ++++++++------------------------
 1 file changed, 8 insertions(+), 24 deletions(-)

New commits:
commit 8b2c8aabe27bcaa4de6432b53c4a1296010ea823
Author: Mark Kettenis <kettenis at openbsd.org>
Date:   Mon Nov 11 23:18:01 2013 +0100

    Fix alignment issues in FD passing code
    
    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 <kettenis at openbsd.org>
    Reviewed-by: Matthieu Herrb <matthieu at herrb.eu>

commit 81662d2018a35a161a5e9707563ee7f503f8d3e0
Author: Mark Kettenis <kettenis at openbsd.org>
Date:   Mon Nov 11 23:16:15 2013 +0100

    Remove unused static inlines
    
    Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
    Reviewed-by: Matthieu Herrb <matthieu at herrb.eu>



More information about the xorg-commit mailing list