qcacld-3.0: Add lost AP sample size entry to nla policy

qcacld-2.0 to qcacld-3.0 Propagation.

improper validation of
QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
results in assigning an unchecked user-controller value.
This can lead to buffer overflow.

validate QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE.

CRs-Fixed: 2056253
Change-Id: I7c33b6d78054672e9effbe9100c29e5604c250c6
This commit is contained in:
SaidiReddy Yenuga 2017-06-05 16:11:56 +05:30 • committed by snandini
commit dec1bfc9dc

View file

@ -134,6 +134,8 @@ static const struct nla_policy wlan_hdd_extscan_config_policy
.type = NLA_S32 },
[QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS] = {
.type = NLA_U32 },
[QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE] = {
.type = NLA_U32},
};
static const struct nla_policy