9444e40d77
Previously, the input tests were working up to sizeof(mask) * 8, which could be more than the arrays; the latter only being sized as MAX_VALUATORS. Hypothetically, if you were switching the stored valuator values to double instead of uint32_t, and you attempted to set the 39th member of a MAX_VALUATORS-sized (36) array, you'd probably end up smashing ev->key_repeat into oblivion and then tripping the check for invalid flags because you haven't yet put XIPointerEmulated into the valid flags for XI_Motion. Probably. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile.am | ||
protocol-common.c | ||
protocol-common.h | ||
protocol-eventconvert.c | ||
protocol-xigetclientpointer.c | ||
protocol-xigetselectedevents.c | ||
protocol-xipassivegrabdevice.c | ||
protocol-xiquerydevice.c | ||
protocol-xiquerypointer.c | ||
protocol-xiqueryversion.c | ||
protocol-xiselectevents.c | ||
protocol-xisetclientpointer.c | ||
protocol-xiwarppointer.c |