We already had a limitation on synching a max of 256 slots, regardless what the device reports, this just extends the check to refuse any device with >256 slots. The kernel already limits to 99 slots for uinput devices so anything 256 and higher will be a malicious/buggy real device. We can't add a test to this because the kernel refuses uinput devices with more than 99 slots. Part-of: <https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/135>
libevdev - wrapper library for evdev input devices
libevdev is a wrapper library for evdev devices. it moves the common tasks when dealing with evdev devices into a library and provides a library interface to the callers, thus avoiding erroneous ioctls, etc.
https://gitlab.freedesktop.org/libevdev/libevdev.git
Go here for the API documentation: http://www.freedesktop.org/software/libevdev/doc/latest/
File bugs in the freedesktop.org GitLab instance: https://gitlab.freedesktop.org/libevdev/libevdev/issues/
Patches should be submitted as merge requests in the GitLab instance: https://gitlab.freedesktop.org/libevdev/libevdev/merge_requests/
Questions and general comments should be submitted to the input-tools@lists.freedesktop.org mailing list: http://lists.freedesktop.org/mailman/listinfo/input-tools