Re: [PATCH libXi] Force class alignment to a multiple of sizeof(XID).

2012-01-18 Thread Peter Hutterer
On Tue, Jan 17, 2012 at 09:26:14PM +0100, Matthieu Herrb wrote: From: Peter Hutterer peter.hutte...@who-t.net Calculate length field to a multiples of sizeof(XID). XIDs are typedefs to ulong and thus may be 8 bytes on some platforms. This can trigger a SIGBUS if a class ends up not being

[PATCH libXi] Force class alignment to a multiple of sizeof(XID).

2012-01-17 Thread Matthieu Herrb
From: Peter Hutterer peter.hutte...@who-t.net Calculate length field to a multiples of sizeof(XID). XIDs are typedefs to ulong and thus may be 8 bytes on some platforms. This can trigger a SIGBUS if a class ends up not being 8-aligned (e.g. after XAxisInfo). Reported-by: Nicolai Stange

Re: [PATCH libXi] Force class alignment to a multiple of sizeof(XID).

2010-10-23 Thread Julien Cristau
On Mon, Oct 18, 2010 at 10:51:09 +1000, Peter Hutterer wrote: Calculate length field to a multiples of sizeof(XID). XIDs are typedefs to ulong and thus may be 8 bytes on some platforms. This can trigger a SIGBUS if a class ends up not being 8-aligned (e.g. after XAxisInfo). Reported-by: