From 79c1d62c4890e9ec5ed449b933dbab716150bd94 Mon Sep 17 00:00:00 2001 From: Yun Park Date: Tue, 17 Jan 2017 11:36:45 -0800 Subject: 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 --- core/hdd/src/wlan_hdd_ipa.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3