diff options
| author | Lihua Liu <lihual@codeaurora.org> | 2018-04-11 10:22:33 +0800 |
|---|---|---|
| committer | Lihua Liu <lihual@codeaurora.org> | 2018-04-11 14:41:35 +0800 |
| commit | 5560cdcd0f094e1da18c75849b1b41481f22fa6b (patch) | |
| tree | 525f88c58e419b4852d7d6048356e4a47e08ecd3 /tools/perf/scripts/python | |
| parent | 43d751c3600e6f6f377ec676bd54a6814eb90589 (diff) | |
qcacld-2.0: Fix buffer overread in wma_extscan_cached_results_event_handler
qcacld-3.0 to qcacld-2.0 propagation
In function wma_extscan_cached_results_event_handler,
event->num_entries_in_page is received from the FW and is used in the
function wma_extscan_find_unique_scan_ids to calculate scan_ids_cnt
from src_rssi buffer. If the value of num_entries_in_page is greater
than the number of src_rssi buffers present, a buffer overread would
occur in the function wma_extscan_find_unique_scan_ids.
There is already a check in place to valudate num_entries_in_page in
the function wma_extscan_cached_results_event_handler however it is done
after the call of wma_extscan_find_unique_scan_ids.
Move the checks on num_entries_in_page before using it in the function
wma_extscan_cached_results_event_handler
Change-Id: I303c0f7f2f150fe0b96d5473370b9553ae61304d
CRs-Fixed: 2221702
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
