mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
qcacld-3.0: Avoid buffer overflow
Add max check for probe request length against max length of probe request buffer to avoid buffer overflow. Change-Id: Ie0fad7443b2c749c66bb9ad662625a16d3a840c3 CRs-Fixed: 2138555
This commit is contained in:
parent
ccd23a8f8c
commit
8472cb885f
1 changed files with 7 additions and 0 deletions
|
|
@ -665,6 +665,13 @@ lim_send_sme_probe_req_ind(tpAniSirGlobal pMac,
|
|||
|
||||
MTRACE(mac_trace(pMac, TRACE_CODE_TX_SME_MSG,
|
||||
psessionEntry->peSessionId, msgQ.type));
|
||||
|
||||
if (ProbeReqIELen > sizeof(pSirSmeProbeReqInd->WPSPBCProbeReq.
|
||||
probeReqIE)) {
|
||||
ProbeReqIELen = sizeof(pSirSmeProbeReqInd->WPSPBCProbeReq.
|
||||
probeReqIE);
|
||||
}
|
||||
|
||||
pSirSmeProbeReqInd->WPSPBCProbeReq.probeReqIELen =
|
||||
(uint16_t) ProbeReqIELen;
|
||||
qdf_mem_copy(pSirSmeProbeReqInd->WPSPBCProbeReq.probeReqIE, pProbeReqIE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue