summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorMin Liu <minliu@codeaurora.org>2018-07-10 14:00:29 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-07-13 03:43:29 -0700
commitbfe7842e621210a3f28c66fc4d763f66408b1fc3 (patch)
treefed9c7c37012df79627b16d87dbfbed6d0bc3528 /tools/perf/scripts
parent8a772ec8739fbb8f4082c10b46cc33f814214a94 (diff)
qcacld-2.0: OOB read while processing extscan change results
Propagation from qcacld-3.0 to qcacld-2.0 In function wma_extscan_change_results_event_handler(), numResults in dest_chglist is assigning as total_entries in the event, but the memory allocated to dest_chglist is based on the numap variable, which may cause out of buffer read in extscan indication callback function wlan_hdd_cfg80211_extscan_signif_wifi_change_results_ind(). Also tSirWifiSignificantChange array parsing in both the functions is not efficient which may lead to accessing unallocated memory. To address out of buffer read, assign numap to numResults in dest_chglist and to address accessing of unallocated memory, parse tSirWifiSignificantChange array with efficient logic. Change-Id: I469405d68cf075e58aa3a17e884032882a595b18 CRs-Fixed: 2275630
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions