Skip to content

tablet: check libevdev_get_abs_info() return value

José Expósito requested to merge JoseExposito/libinput:issue-805 into main

Commit b5f0536a ("quirks: add a quirk for the Wacom 524c device") added the quirk AttrEventCodeDisable=ABS_TILT_X;ABS_TILT_Y; to the Wacom 524c.

When using the pen in a display with tilt support, the tilt X/Y axes are set as changed. Using the pen again, but this time in the display without tilt support, will try to get the tilt information, crashing.

Check the return value of libevdev_get_abs_info() to avoid this crash.

Fix #805 (closed)

Fixes: b5f0536a ("quirks: add a quirk for the Wacom 524c device")

Merge request reports