mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Fix potential buffer overflow issues in RRM
Check for the maximum supported neighbor response reports while parsing the pFrm->NeighborReport. Change-Id: I4ee93adf79057e803bd948ed8657efcd4327efb8 CRs-Fixed: 2098766
This commit is contained in:
parent
b9d24fbb9f
commit
151376c3bf
1 changed files with 4 additions and 0 deletions
|
|
@ -354,6 +354,10 @@ rrm_process_neighbor_report_response(tpAniSirGlobal pMac,
|
|||
pe_err("No neighbor report in the frame...Dropping it");
|
||||
return eSIR_FAILURE;
|
||||
}
|
||||
pe_debug("RRM:received num neighbor reports: %d",
|
||||
pNeighborRep->num_NeighborReport);
|
||||
if (pNeighborRep->num_NeighborReport > MAX_SUPPORTED_NEIGHBOR_RPT)
|
||||
pNeighborRep->num_NeighborReport = MAX_SUPPORTED_NEIGHBOR_RPT;
|
||||
length = (sizeof(tSirNeighborReportInd)) +
|
||||
(sizeof(tSirNeighborBssDescription) *
|
||||
(pNeighborRep->num_NeighborReport - 1));
|
||||
|
|
|
|||
Loading…
Reference in a new issue