Skip to content
Snippets Groups Projects
Commit c3c82313 authored by Manjeet Singh's avatar Manjeet Singh Committed by Stuart Scott
Browse files

qcacld-2.0: Add bounday check for multicastAddr array


In hdd_set_rx_filter API multicastAddr array being accessed beyond
its size.

Add boundary check for multicastAddr.

CRs-Fixed: 1104565
Bug: 38182308
Change-Id: I8e1543a8f42ac40c04d2c6a17e69718d13cbd706
Signed-off-by: default avatarAhmed ElArabawy <arabawy@google.com>
parent 49075b06
Branches
Tags
No related merge requests found
......@@ -4598,6 +4598,8 @@ static int hdd_set_rx_filter(hdd_adapter_t *adapter, bool action,
MAC_ADDR_ARRAY(filter->multicastAddr[j]));
j++;
}
if (j == SIR_MAX_NUM_MULTICAST_ADDRESS)
break;
}
filter->ulMulticastAddrCnt = j;
/* Set rx filter */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment