diff options
author | 2021-02-15 16:39:21 +0000 | |
---|---|---|
committer | 2021-02-17 19:00:06 +0100 | |
commit | 50ab1ffd7c41c5c7759b62fb42d3006b751bb12b (patch) | |
tree | 4f22d1a69591a58271620dfe96f82c3437ba5c92 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | HID: playstation: fix unused variable in ps_battery_get_property. (diff) | |
download | wireguard-linux-50ab1ffd7c41c5c7759b62fb42d3006b751bb12b.tar.xz wireguard-linux-50ab1ffd7c41c5c7759b62fb42d3006b751bb12b.zip |
HID: playstation: fix array size comparison (off-by-one)
The comparison of value with the array size ps_gamepad_hat_mapping
appears to be off-by-one. Fix this by using >= rather than > for the
size comparison.
Addresses-Coverity: ("Out-of-bounds read")
Fixes: bc2e15a9a022 ("HID: playstation: initial DualSense USB support.")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions