diff options
| author | Nagalakshmi <quic_nmenthul@quicinc.com> | 2022-11-29 22:48:35 -0800 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2023-06-09 14:04:15 +0200 |
| commit | 0d7a6c301af8851542a9ec66a7dab571a979c057 (patch) | |
| tree | 54735523f1bed19b7d1e79e6f3eb1a9459df3e82 /tools/perf/scripts/python | |
| parent | 1a4b80f8f2017576f530658f48659d9a222f4648 (diff) | |
qcacld-3.0: Fix OOB in wma_scan_roam.c
Currently in wma_extscan_hotlist_match_event_handler
API, dest_hotlist get memory allocation based on numap
which takes value from event->total_entries.
But numap is limited to WMA_EXTSCAN_MAX_HOTLIST_ENTRIES
and event->total_entries more than WMA_EXTSCAN_MAX_HOTLIST_ENTRIES
can cause out of bound issue.
Fix is to populate dest_hotlist->numOfAps from numap
instead of event->total_entries to avoid any out of bound issue.
Change-Id: I756f7e4a4dcd454508bba83d4a8bbbb139530905
CRs-Fixed: 3346781
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
