Skip to content

wacom: Do not crash when handling an unknown stylus ID

Jason Gerecke requested to merge jigpu/gnome-control-center:fix-null-stylus into main

If the user brings a stylus into prox over the window which does not have an ID known to libwacom, the program will crash due to a NULL dereference here by libwacom_stylus_is_erase. The caller already knows how to handle a NULL, so simply pass the NULL along if libwacom was unable to find a stylus.

Fixes: #3211 (closed)

Merge request reports

Loading