summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorPragaspathi Thilagaraj <tpragasp@codeaurora.org>2018-05-16 18:52:12 +0530
committernshrivas <nshrivas@codeaurora.org>2018-05-22 00:44:56 -0700
commitc535b64e78a4d7019f0654b39935cb124806b3f8 (patch)
tree6069256926b8714f2449dcfd22e1faa27916135d /scripts/patch-kernel
parent92f7f1d07a27f4b45bce63925d8be61deaf561a1 (diff)
qcacmn: Fix possible buffer overflow in send_stats_ext_req_cmd_tlv
In the function __wlan_hdd_cfg80211_stats_ext_request, data_len is recieved from vendor command and is passed ultimately to send_stats_ext_req_cmd_tlv. In send_stats_ext_req_cmd_tlv, len is calculated as sum of sizeof(*cmd), WMI_TLV_HDR_SIZE, preq->request_data_len.The len is of type uint16_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: 2243169
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions