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:
Abhishek Singh
2019-01-03 14:13:11 +05:30
committed by nshrivas
parent ab5cba5cbb
commit 00f80b6094
4 changed files with 22 additions and 14 deletions

View File

@@ -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