CVSROOT: /cvs Module name: xenocara Changes by: aoy...@cvs.openbsd.org 2023/08/02 07:57:24
Modified files: lib/libXi/src : XExtInt.c Log message: Add pad_to_double() when the function allocates memories for 'double' internally. The functions wireToRawEvent() and copyRawEvent() get memories first, then allocate memory blocks sequentially for several objects include 'double' from there. On m88k, the memory area for 'double' should be 8-byte aligned, but sizeof(XIRawEvent) is 60 and sizeof(out->valuators.mask_len) is 8. In this case, allocated 'double' memory was not 8-byte aligned. Because of this, 'xeyes' on luna88k was aborted with Bus Error right after moving mouse for several years with sys/arch/m88k/m88k/trap.c r.127. Tested by me on luna88k, ok matthieu@