diff options
| author | bings <bings@codeaurora.org> | 2017-08-29 08:30:46 +0800 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-08-31 23:58:35 -0700 |
| commit | 3d56bbf22bc97ed44a2be8d32f70bd0c7e1acfe7 (patch) | |
| tree | 1812c5e099e2301a990e7a4470a14a68ab844481 | |
| parent | 8ac47d6739127fe6c7d9e2a4d122d68cf3c83dc1 (diff) | |
qcacld-3.0: Fix SSIDList memory illegal access
In struct tagCsrSSIDs, field numOfSSIDs should record correct number
of SSID in field SSIDList.
SSIDList memory illegal access happens when numOfSSIDs is not zero,
and SSIDList is NULL.
Set numOfSSIDs as 0, when SSIDList is set as NULL.
Change-Id: Ie0a365c81344f1857ba5bf461887996bb5089371
CRs-Fixed: 2084050
| -rw-r--r-- | core/sme/src/csr/csr_api_scan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 6e0d9caa8e0f..75faf3a6b473 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -5993,6 +5993,7 @@ QDF_STATUS csr_scan_copy_request(tpAniSirGlobal mac_ctx, dst_req->pIEField = NULL; dst_req->ChannelInfo.ChannelList = NULL; dst_req->SSIDs.SSIDList = NULL; + dst_req->SSIDs.numOfSSIDs = 0; dst_req->voui = NULL; if (src_req->uIEFieldLen) { |
