summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGurumoorthi Gnanasambandhan <gguru@codeaurora.org>2018-02-05 23:21:40 +0530
committerVignesh Viswanathan <viswanat@codeaurora.org>2018-02-07 10:44:05 +0530
commit9ef8683e1329596436493ff808f94451a84a1ff0 (patch)
tree363ab171d283b218fb2fac3a4993dcf6aed66afc /tools/perf/scripts/python
parent9a10dbd0324fa6612bd3923cc8bcba8ad3cf51f6 (diff)
qcacmn: Add sanity check for wmi TLV length
Add sanity check for wmi TLV header length before padding/shrinking elements in a wmi which has a variable length for its TLV structure. Currently, the TLV length is not checked so its maximum value could be 65535 which results in a hugh count for elements. Number of elements is used to terminate the loop for padding/shrinking. If the number was too large, there would be memory overflow. Change-Id: Iea0615fc511696c6cc5dcc48a9dfff225256a52b CRs-Fixed: 2181685
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions