aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-05-20 11:47:37 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-30 09:44:33 +1000
commit6d43a45b99e07325c74cbe1d20b04094ba99950d (patch)
treee60d0543d566e6f098b0c09cc3d499a18c0c964b /src/evdev.h
parentOnly label axes and buttons if the device has axes or buttons. (diff)
downloadxf86-input-evdev-6d43a45b99e07325c74cbe1d20b04094ba99950d.tar.gz
xf86-input-evdev-6d43a45b99e07325c74cbe1d20b04094ba99950d.tar.bz2
xf86-input-evdev-6d43a45b99e07325c74cbe1d20b04094ba99950d.zip
Up the number of button labels atoms to EVDEV_MAXBUTTONS.
Button labels would smash memory if the device had less than 4 buttons and did not advertise a wheel event. In this case the hard-coded wheel button labels would write past the atoms[] boundary. Potential memory smash if a device had a BTN_LEFT and BTN_0, since the latter would map to 8, regardless of the the number of actual buttons (same with BTN_MIDDLE and BTN_1 or BTN_RIGHT and BTN_2). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit 33cc112ca1af377a85cfeb05dfb72f07d3850a95)
Diffstat (limited to 'src/evdev.h')
0 files changed, 0 insertions, 0 deletions