diff options
| author | Vignesh Viswanathan <viswanat@codeaurora.org> | 2018-02-21 18:06:51 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-02-22 04:59:42 -0800 |
| commit | 08d84f8db9dec79424524cda64a669d90593a362 (patch) | |
| tree | 6c6df814b6b3751c7992c24ee8285793c525c930 /tools/perf/scripts/python | |
| parent | dcd5d53cfb3c634e0760cc62265880f5ab6952b9 (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.
This restores the change which was reverted using the Change-Id
I94be5878dc1f80c960bbd7ce3916b8b3f17cf43b
Change-Id: Icbab3f8b9e8b05cadba7332cc955b9d5dba839f8
CRs-Fixed: 2193421
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
