Files
linux/drivers/hid
Dan Carpenter ba6ff62a27 HID: roccat: prevent an out of bounds read in kovaplus_profile_activated()
[ Upstream commit 7ad81482ca ]

We get the "new_profile_index" value from the mouse device when we're
handling raw events.  Smatch taints it as untrusted data and complains
that we need a bounds check.  This seems like a reasonable warning
otherwise there is a small read beyond the end of the array.

Fixes: 0e70f97f25 ("HID: roccat: Add support for Kova[+] mouse")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Silvan Jegen <s.jegen@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:48:54 +02:00
..
2017-10-18 09:20:41 +02:00
2015-10-21 13:15:53 +02:00
2013-01-03 10:27:31 +01:00
2014-08-21 10:43:28 -05:00
2018-04-24 09:32:07 +02:00
2015-10-21 13:15:53 +02:00
2018-03-22 09:23:27 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-04-24 16:32:27 +02:00
2018-04-24 09:32:07 +02:00
2013-01-03 10:27:31 +01:00
2015-11-06 21:18:06 +01:00
2018-04-24 09:32:07 +02:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2015-10-21 13:15:53 +02:00
2018-04-24 09:32:07 +02:00
2014-06-27 00:33:44 +02:00
2013-01-03 10:27:31 +01:00
2015-05-07 10:47:53 +02:00
2014-08-21 10:43:28 -05:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00