Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HID: roccat: prevent an out of bounds read in kovaplus_profile_activa…
…ted() 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: 0e70f97 ("HID: roccat: Add support for Kova[+] mouse") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Silvan Jegen <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
- Loading branch information