summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreelakshmi Konamki <skonam@codeaurora.org>2017-01-06 18:10:32 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-01-09 08:02:18 -0800
commit6f88aba6b1f81f3ce8b2020f488c110796430008 (patch)
tree62f17e804f65ed4ff9ad2f278fbf8866e7a53e8b
parent8deea31967b11b11cb83488727d09e4fe5fd49e5 (diff)
qcacld-3.0: Validate no.of RIC data desctiptors before use
qcacld-2.0 to qcacld-3.0 propagation Add change to validate no.of RIC data desctriptors before using it to access RICData array. Change-Id: I0ac4e9e1eb61690b3c13a74fa0edfc5af13d88c6 CRs-Fixed: 1102327
-rw-r--r--core/mac/src/sys/legacy/src/utils/src/parser_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mac/src/sys/legacy/src/utils/src/parser_api.c b/core/mac/src/sys/legacy/src/utils/src/parser_api.c
index 13bc578342cd..4b4fa3567867 100644
--- a/core/mac/src/sys/legacy/src/utils/src/parser_api.c
+++ b/core/mac/src/sys/legacy/src/utils/src/parser_api.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -2949,7 +2949,7 @@ sir_convert_assoc_resp_frame2_struct(tpAniSirGlobal pMac,
sizeof(tDot11fIEFTInfo));
}
- if (ar.num_RICDataDesc) {
+ if (ar.num_RICDataDesc <= 2) {
for (cnt = 0; cnt < ar.num_RICDataDesc; cnt++) {
if (ar.RICDataDesc[cnt].present) {
qdf_mem_copy(&pAssocRsp->RICData[cnt],