libXi: Changes to 'master'
Peter Hutterer
whot at kemper.freedesktop.org
Wed Mar 16 17:33:24 PDT 2011
src/XExtInt.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
New commits:
commit 2d638fc37b0dbf28e5c826f74f68ada83a8c3e2b
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Tue Mar 15 10:55:10 2011 +1000
Force alignment with sizeof(Atom) for XIButtonClassInfo
The memory layout of an XIButtonClassInfo is
[struct XIButtonClassInfo][mask][labels]
With the mask being currently 4-byte aligned and labels a list of Atoms. On
LP64, Atoms are 8 byte, leading to unaligned access for some mask lengths.
Force the alignment to be sizeof(Atom).
Reported-by: Christian Weisgerber <naddy at mips.inka.de>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
Tested-by: Christian Weisgerber <naddy at mips.inka.de>
Reviewed-by: Adam Jackson <ajax at redhat.com>
More information about the xorg-commit
mailing list