Lorenzo BianconiandFelix Fietkau c1574466c7 mt76: fix possible OOB issue in mt76_calculate_default_rate
Cap max offset value to ARRAY_SIZE(mt76_rates) - 1 in
mt76_calculate_default_rate routine in order to avoid possible Out Of
Bound accesses.

Fixes: 33920b2bf0483 ("mt76: add support for setting mcast rate")
Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
2021-11-21 20:26:13 +01:00
2021-04-14 09:12:11 +02:00
2021-04-11 12:49:17 +02:00
2021-08-13 12:25:36 +02:00
2021-11-21 20:26:13 +01:00
2021-04-17 11:19:58 +02:00
2021-01-14 11:14:59 +01:00
2021-10-11 09:19:04 +02:00
2021-01-14 11:14:59 +01:00
2020-06-16 22:05:14 +02:00
2021-10-19 12:15:59 +02:00
2019-08-22 09:26:30 +02:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%