mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacmn: Add sanity check to fix OOB issue
Add sanity check to fix OOB issue while generating scan entries for beacon CRs-Fixed: 3591858 Change-Id: I35b362bc89ab10fa2d2d6660263c726692384e07
This commit is contained in:
parent
241659c576
commit
825d21edcb
1 changed files with 2 additions and 2 deletions
|
|
@ -2642,9 +2642,9 @@ util_scan_parse_beacon_frame(struct wlan_objmgr_pdev *pdev,
|
|||
mbssid_ie = util_scan_find_ie(WLAN_ELEMID_MULTIPLE_BSSID,
|
||||
(uint8_t *)&bcn->ie, ie_len);
|
||||
if (mbssid_ie) {
|
||||
if (mbssid_ie[1] <= 0) {
|
||||
if (mbssid_ie[TAG_LEN_POS] < VALID_ELEM_LEAST_LEN) {
|
||||
scm_debug("MBSSID IE length is wrong %d",
|
||||
mbssid_ie[1]);
|
||||
mbssid_ie[TAG_LEN_POS]);
|
||||
return status;
|
||||
}
|
||||
qdf_mem_copy(&mbssid_info.trans_bssid,
|
||||
|
|
|
|||
Loading…
Reference in a new issue