summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHarprit Chhabada <harpritchhabada@codeaurora.org>2018-10-08 14:45:35 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-11-27 04:12:47 -0800
commita01623699ad76fc6947483b063727f417d526df7 (patch)
treeb72e286ba3d3668dfc77c12dfe2f8534b1f582f4 /tools/perf/scripts/python
parent332e3603f4c216e984f3ca20d53cfb5c18826986 (diff)
qcacld-3.0: Add bound check for fixed_param->total_num_tx_power_levels
Add bound check for new fixed_param->total_num_tx_power_levels with its old value of rs_results->total_num_tx_power_levels in wma_unified_radio_tx_power_level_stats_event_handler. rs_results->tx_time_per_power_level is allocated only once if it has not been already allocated.This allocation is saved into the global wma_handle structure. If multiple invocations of this handler occur then a buffer overflow can occur in the following scenario: 1. First message is used to allocate rs_results->tx_time_per_power_level with a small, but valid size. 2. Second message skips allocation of rs_results->tx_time_per_power_level since it was done with the first message. This message specifies a larger valid value and causes the qdf_mem_copy() to overflow. Change-Id: Ib9c7d3bd667e2ffc1408cd7356be35985331e028 CRs-Fixed: 2327688
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions