evdev: prevent unterminated device name
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 7 Aug 2013 01:04:41 +0000 (11:04 +1000)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:32 +0000 (17:51 +0100)
commit756785ec3eb5643a73fc9556eb67227b4e4623e4
tree120e4572c1054566191009c1fa0e89cff31a26cd
parent297bac98026a630f789b923aab1be8eba89ccd09
evdev: prevent unterminated device name

The kernel copies up to sizeof(devname) bytes but doesn't null-terminate the
string if the device name exceeds the size of the supplied buffer.
src/evdev.c