Building with LTO I see following warning:
In function 'draglock_get_pairs.constprop',
inlined from 'LibinputInitDragLockProperty' at xf86libinput.c:5328:8:
draglock.c:134:2: warning: 'memset' writing 4112 bytes into a region of size 1028 overflows the destination [-Wstringop-overflow=]
memset(array, 0, sz * sizeof(array));
Created attachment 140521 [details] [review]
There's missing division by size of array element.
Sent a slightly more extensive patch to the list to avoid future ambiguities there, please see here:
(In reply to Peter Hutterer from comment #2)
> Sent a slightly more extensive patch to the list to avoid future ambiguities
> there, please see here:
Thanks for the fix.
Author: Peter Hutterer <>
Date: Tue Jul 10 11:17:50 2018 +1000
draglock: fix memory overwrite during draglock parsing