diff options
author | Baochen Qiang <[email protected]> | 2023-09-01 09:56:02 +0800 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2023-09-20 16:38:10 +0300 |
commit | 1bc44a505a229bb1dd4957e11aa594edeea3690e (patch) | |
tree | 551aa7c0101ff685fd86d126ad7d8898737c4d7a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 41e7a399aea1dbf3d0ffdeb6ef8e9eaea7fa6cf5 (diff) |
wifi: ath12k: fix possible out-of-bound read in ath12k_htt_pull_ppdu_stats()
len is extracted from HTT message and could be an unexpected value in
case errors happen, so add validation before using to avoid possible
out-of-bound read in the following message iteration and parsing.
The same issue also applies to ppdu_info->ppdu_stats.common.num_users,
so validate it before using too.
These are found during code review.
Compile test only.
Signed-off-by: Baochen Qiang <[email protected]>
Acked-by: Jeff Johnson <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions