qcacmn: Fix out of bound read issue in ESP ie parse

During esp ie parse from beacon/probe response, the data pointer
is getting read from esp ie and it's not validate while updating
to esp params which may cause out of bound read issue.

Validate data pointer before updating to esp params.

Change-Id: I1167b82248613cc65fcd7c70cdcfe57595de6b21
CRs-Fixed: 2842234
Bug: 177576987
Signed-off-by: Srinivas Girigowda <quic_sgirigow@quicinc.com>
1 file changed