summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorhqu <hqu@codeaurora.org>2018-11-22 16:20:33 +0800
committerhqu <hqu@codeaurora.org>2018-11-22 16:20:33 +0800
commite890293dd563ab28c9226def7646ee7c0be948ce (patch)
treed442d2e2c3df83d6e939fbd2fe95adc3671e2a76 /tools/perf/scripts
parent71620598cafbffc15b767cca152c36d4c144198e (diff)
qcacld-2.0: Fix possible buffer overflow in wma_stats_ext_req
In the function __wlan_hdd_cfg80211_stats_ext_request, data_len is recieved from vendor command and is passed ultimately to wma_stats_ext_req. In wma_stats_ext_req, len is calculated as sum of sizeof(*cmd), WMI_TLV_HDR_SIZE, preq->request_data_len. The len is of type u_int16_t and adding sizeof(*cmd) + WMI_TLV_HDR_SIZE will cause a buffer overflow. Changed the datatype of len to size_t so that it doesn't overflow. Change-Id: I6618042e3c60bbdb1ff5d833188f4bdb4832da7a CRs-Fixed: 2350908
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions