linux/drivers/staging/wilc1000
Oscar Carter a4338ed2e1 staging: wilc1000: Increase the size of wid_list array
Increase by one the size of wid_list array as index variable can reach a
value of 5. If this happens, an out-of-bounds access is performed.

Also, use a #define instead of a hard-coded literal for the new array
size.

Addresses-Coverity-ID: 1451981 ("Out-of-bounds access")
Fixes: f5a3cb90b8 ("staging: wilc1000: add passive scan support")
Acked-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Link: https://lore.kernel.org/r/20200504150911.4470-1-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-05 12:23:28 +02:00
..
cfg80211.c Staging: wilc1000: cfg80211: Use kmemdup instead of kmalloc and memcpy 2020-03-17 14:00:45 +01:00
cfg80211.h staging: wilc1000: added 'WILC_' prefix in header guard macro 2019-11-05 18:08:52 +01:00
fw.h staging: wilc1000: added 'wilc_' prefix for 'struct assoc_resp' name 2020-01-22 09:53:45 +01:00
hif.c staging: wilc1000: Increase the size of wid_list array 2020-05-05 12:23:28 +02:00
hif.h staging: wilc1000: move firmware API struct's to separate header file 2020-01-22 09:53:45 +01:00
Kconfig staging: wilc1000: Use crc7 in lib/ rather than a private copy 2020-03-26 16:58:24 +01:00
Makefile staging: wilc1000: remove 'wilc_' prefix from filenames 2019-11-05 18:08:52 +01:00
microchip,wilc1000.yaml staging: wilc1000: remove label from examples in DT binding documentation 2020-03-26 08:37:38 +01:00
mon.c staging: wilc1000: make use of FIELD_GET/_PREP macro 2020-02-14 08:20:10 -08:00
netdev.c staging: wilc1000: rearrange line exceeding 80 characters 2020-03-17 14:00:45 +01:00
netdev.h staging: wilc1000: use 'interrupts' property instead of 'irq-gpio' 2020-03-12 09:23:58 +01:00
sdio.c staging: wilc1000: modified 'clock-names' and 'compatible' property 2020-03-12 09:23:58 +01:00
spi.c staging: wilc1000: Use crc7 in lib/ rather than a private copy 2020-03-26 16:58:24 +01:00
TODO staging: wilc1000: remove TODO item for comments and code style 2018-08-05 16:15:32 +02:00
wlan_cfg.c staging: wilc1000: remove use of infinite loop conditions 2020-01-22 09:53:45 +01:00
wlan_cfg.h staging: wilc1000: remove 'wilc_' prefix from filenames 2019-11-05 18:08:52 +01:00
wlan_if.h staging: wilc1000: move firmware API struct's to separate header file 2020-01-22 09:53:45 +01:00
wlan.c staging: wilc1000: remove unnecessary always true 'if' conditions 2020-03-04 07:55:02 +01:00
wlan.h staging: wilc1000: use 'interrupts' property instead of 'irq-gpio' 2020-03-12 09:23:58 +01:00