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

Commit 261a5c59 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qcacmn: Add length check in ndp event handler" into wlan-cmn.driver.lnx.2.0.c2

parents ba0cf0b8 e9868e74
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -744,6 +744,13 @@ static QDF_STATUS extract_ndp_ind_tlv(wmi_unified_t wmi_handle,
		return QDF_STATUS_E_INVAL;
	}

	if (fixed_params->nan_scid_len > event->num_ndp_scid) {
		WMI_LOGE("FW msg ndp scid info len %d more than TLV hdr %d",
			 fixed_params->nan_scid_len,
			 event->num_ndp_scid);
		return QDF_STATUS_E_INVAL;
	}

	if (fixed_params->ndp_cfg_len >
		(WMI_SVC_MSG_MAX_SIZE - sizeof(*fixed_params))) {
		WMI_LOGE("%s: excess wmi buffer: ndp_cfg_len %d",