Created attachment 7976 Fix The mask_len field is setup incorrectly in xfwm_device_fill_xi2_event_mask(). sizeof is the pointer length, not the bitmask data area length.
May also fix bug #14648.
In practice, sizeof the pointer is 8 on 64-bit platforms. Where the mask length is 4 bytes. This caused several places to access 4 extra bytes beyond allocated memory with uninitialized values.
it also seems to fix bug #14580, with the patch i'm able to build xfwm4 4.13.1 with xi2 enabled on OpenBSD, and it starts fine.
*** Bug 14580 has been marked as a duplicate of this bug. ***
*** Bug 14648 has been marked as a duplicate of this bug. ***
Timo referenced this bugreport in commit 2080fa3c81b3810228ae5a8abbb494c78dd1d566 device: Fix wrong mask len https://git.xfce.org/xfce/xfwm4/commit?id=2080fa3c81b3810228ae5a8abbb494c78dd1d566
Pushed, thanks!