Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5b9369b authored by Surya Prakash Sivaraj's avatar Surya Prakash Sivaraj Committed by Ravindra Konda
Browse files

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
parent 704ecb7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2011,7 +2011,7 @@ 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[1] < 4) {
				scm_debug("MBSSID IE length is wrong %d",
					  mbssid_ie[1]);
				return status;