summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYun Park <yunp@codeaurora.org>2017-01-17 11:36:45 -0800
committerqcabuildsw <qcabuildsw@localhost>2017-01-20 03:12:41 -0800
commit79c1d62c4890e9ec5ed449b933dbab716150bd94 (patch)
treecfeb37008cf7ce41f8a8f46b1678478315ba3445
parentd8b3e7799b50be02262a4b4297fa23ef711212bb (diff)
qcacld-3.0: Add op_string entries for additional opcodes
Fix potential buffer overflow by array index out of bounds There are additional 3 opcodes for quota/sharing states, but op_string entries are not added. Due to this, when run STA+SAP with debug mode trace enabled, op_string array could be accessed out-of-bounds. Add op_string entries for additional opcodes. Change-Id: I79699b92a4d160a636cf8282c4b1c19475f6632e CRs-Fixed: 1110991
-rw-r--r--core/hdd/src/wlan_hdd_ipa.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c
index 6b672e728d80..34fdaca9f929 100644
--- a/core/hdd/src/wlan_hdd_ipa.c
+++ b/core/hdd/src/wlan_hdd_ipa.c
@@ -622,6 +622,11 @@ static const char *op_string[] = {
"RX_SUSPEND",
"RX_RESUME",
"STATS",
+#ifdef FEATURE_METERING
+ "SHARING_STATS",
+ "QUOTA_RSP",
+ "QUOTA_IND",
+#endif
};
#ifdef FEATURE_METERING