summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanumanth Reddy Pothula <c_hpothu@codeaurora.org>2017-01-19 13:41:29 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-01-20 10:15:09 -0800
commit9a8c310bbab5f417aee9f2b2f3c9c0c48494b2a1 (patch)
tree2db0d7f5c26eaa983253c2428d78a6243f0da0f9
parent8cc446c04e6c5f717ab86c4103ed284d3edb5d2c (diff)
qcacld-3.0: Resolve out of bound memory access, while processing setpno
propagation from qcacld-2.0 to qcacld-3.0. While processing setpno ioctl, there is an out of bound memory issue when Host is copying ioctl arguments to a local buffer. While copying ioctl arguments, make sure valid indices are used. Change-Id: I03078df7135f5f1daf1d9bead7d4410e58fb848a CRs-Fixed: 1112355
-rw-r--r--core/hdd/src/wlan_hdd_wext.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c
index 8d6e5872a311..d4271216f9ba 100644
--- a/core/hdd/src/wlan_hdd_wext.c
+++ b/core/hdd/src/wlan_hdd_wext.c
@@ -10477,7 +10477,6 @@ static int __iw_set_pno(struct net_device *dev,
}
qdf_mem_zero(data, len);
qdf_mem_copy(data, extra, (len-1));
- data[len] = '\0';
ptr = data;
request.enable = 0;