qcacmn: fix out of bound access of memories in wlan_cfg80211_scan
In wlan_cfg80211_scan the number of ssid, ssid length and number of channels are not checked for max size of array and thus can lead to Out of bound access of memories. Fix is to add bound check before copying the params. Change-Id: Ie6d4e546fb9c884d5988493b611ef7b217f0a95c CRs-Fixed: 2375217
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
|
||||
#define IEEE80211_ADDR_LEN 6 /* size of 802.11 address */
|
||||
#define WMI_MAC_MAX_SSID_LENGTH 32
|
||||
#define WMI_SCAN_MAX_NUM_SSID 0x0A
|
||||
#ifndef CONFIG_HL_SUPPORT
|
||||
#define mgmt_tx_dl_frm_len 64
|
||||
#else
|
||||
|
Reference in New Issue
Block a user