commit | 3c57744646d8df20197a395fe8e8e953e10c4b46 | [log] [tgz] |
---|---|---|
author | Manjeet Singh <manjee@codeaurora.org> | Fri Feb 10 19:03:38 2017 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Feb 20 09:21:39 2017 -0800 |
tree | f5890db49e52a5f8a11e81430ed1a1f2afa11dad | |
parent | b8c53aac886e58b7a44c98dcb3e38977f18fdf28 [diff] |
wlan: Add buf len check in wlan_hdd_cfg80211_testmode In __wlan_hdd_cfg80211_testmode API no checks are in place that ensure that buflen is smaller or equal the size of the stack variable hb_params. Hence, the vos_mem_copy() call can overflow stack memory. Add buf len check to avoid stack overflow. CRs-Fixed: 1105085 Change-Id: I6af6a74cc38ebce3337120adcf7e9595f22d3d8c