diff options
| author | Pragaspathi Thilagaraj <tpragasp@codeaurora.org> | 2018-08-30 11:03:08 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-09-06 13:30:46 -0700 |
| commit | 364ecc04d218a5508570951e2031d2a00c0f2749 (patch) | |
| tree | 76fd25e802e6b333042fc51a11596e3cf97af81a /tools/perf/scripts/python | |
| parent | f9262912843696f3bd6644e497f16aafdaa52ae5 (diff) | |
qcacld-3.0: Fix possible OOB in wma_pdev_div_info_evt_handler
In the function wma_pdev_div_info_evt_handler, while handling
WMI_PDEV_DIV_RSSI_ANTID_EVENTID event, the corresponding event
handler wma_pdev_div_info_evt_handler is invoked. In the
function wma_pdev_div_info_evt_handler, event_buf argument comes
directly from firmware and event parameter is pulled from event
buf. The event->num_chains_valid is used as the maximum bound on
the array index of chain_rssi[] array which has a maximum limit
of CHAIN_MAX_NUM(8). When event->num_chains_valid has a value
greater than this maximum limit, OOB write could occur.
Add check to validate the event->num_chains_valid against
CHAIN_MAX_NUM(8) and return failure if it exceeds.
Change-Id: I40f1aa8a7b4bcffef3cab588c78c700e88e24673
CRs-Fixed: 2304662
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
