linux/drivers/staging/wilc1000
Ajay Singh c7e621bb98 staging: wilc1000: fix illegal memory access in wilc_parse_join_bss_param()
Do not copy the extended supported rates in 'param->supp_rates' if the
array is already full with basic rates values. The array size check
helped to avoid possible illegal memory access [1] while copying to
'param->supp_rates' array.

1. https://marc.info/?l=linux-next&m=157301720517456&w=2

Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1487400 ("Memory - illegal accesses")
Fixes: 4e0b0f42c9 ("staging: wilc1000: use struct to pack join parameters for FW")
Cc: stable@vger.kernel.org
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20191106062127.3165-1-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-11 16:37:59 +01:00
..
cfg80211.c staging: wilc1000: remove 'wilc_' prefix from filenames 2019-11-05 18:08:52 +01:00
cfg80211.h staging: wilc1000: added 'WILC_' prefix in header guard macro 2019-11-05 18:08:52 +01:00
hif.c staging: wilc1000: fix illegal memory access in wilc_parse_join_bss_param() 2019-11-11 16:37:59 +01:00
hif.h staging: wilc1000: added 'WILC_' prefix in header guard macro 2019-11-05 18:08:52 +01:00
Kconfig staging: remove redundant 'default n' from Kconfig 2019-04-16 13:39:01 +02:00
Makefile staging: wilc1000: remove 'wilc_' prefix from filenames 2019-11-05 18:08:52 +01:00
microchip,wilc1000,sdio.txt staging: dt-bindings: wilc1000: add optional rtc_clk property 2019-09-12 10:35:51 +01:00
microchip,wilc1000,spi.txt staging: dt-bindings: wilc1000: add optional rtc_clk property 2019-09-12 10:35:51 +01:00
mon.c staging: wilc1000: added proper spacing for comments 2019-11-05 18:08:53 +01:00
netdev.c staging: wilc1000: remove 'wilc_' prefix from filenames 2019-11-05 18:08:52 +01:00
netdev.h staging: wilc1000: added proper spacing for comments 2019-11-05 18:08:53 +01:00
sdio.c staging: wilc1000: remove 'wilc_' prefix from filenames 2019-11-05 18:08:52 +01:00
spi.c staging: wilc1000: remove 'wilc_' prefix from filenames 2019-11-05 18:08:52 +01:00
TODO
wlan.c staging: wilc1000: remove 'wilc_' prefix from filenames 2019-11-05 18:08:52 +01:00
wlan.h staging: wilc1000: added proper spacing for comments 2019-11-05 18:08:53 +01:00
wlan_cfg.c staging: wilc1000: use defines for msg types received from firmware 2019-11-05 18:08:53 +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: added proper spacing for comments 2019-11-05 18:08:53 +01:00