From 3d56bbf22bc97ed44a2be8d32f70bd0c7e1acfe7 Mon Sep 17 00:00:00 2001 From: bings Date: Tue, 29 Aug 2017 08:30:46 +0800 Subject: 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 --- core/sme/src/csr/csr_api_scan.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3