commit | 4e921a7daca07b7f3224e1d8f866ee38154e349a | [log] [tgz] |
---|---|---|
author | Manjeet Singh <manjee@codeaurora.org> | Fri Feb 10 19:03:38 2017 +0530 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sat Feb 29 11:16:44 2020 +0100 |
tree | 5db95a301cdae6b8ee6ba469b2d72cac31a6055e | |
parent | deccca835767c10070d204257f90fc7022786f88 [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. Issue: SEC-2081 CRs-Fixed: 1105085 Change-Id: I6af6a74cc38ebce3337120adcf7e9595f22d3d8c (adapted from commit a577dc1838b92eb0e7ecf16401e7a2b5e3238e61)