summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAbhinav Kumar <abhikuma@codeaurora.org>2017-12-06 12:30:30 +0530
committersnandini <snandini@codeaurora.org>2018-01-03 18:08:29 -0800
commit446b0c178fd9865e09d9ea993301a90d60549f45 (patch)
tree0c3940c7f5018d603e5b51049b8abba46a47c562 /tools/perf/scripts/python
parentc6ae724d727a65a368cf98e0492f98c02c06c37b (diff)
qcacld-2.0: Fix potential buffer overwrite
In function wma_unified_link_iface_stats_event_handler, num_ac is received from the firmware and is used in the loop to populate values into results. However, the memory for results is allocated only for WIFI_AC_MAX and a buffer overflow will occur if num_ac is greater than or equal to WIFI_AC_MAX. Add checks to make sure num_ac is not greater than or equal to WIFI_AC_MAX. Change-Id: Ife8b1d19aa853f85f4fad82d5791e49a8c892ca4 CRs-Fixed: 2154226
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions