diff options
| author | Sourav Mohapatra <mohapatr@codeaurora.org> | 2018-07-11 09:25:01 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-07-16 09:58:58 -0700 |
| commit | 10d7e047a3e56be9e0c5140e161994ee216a3e25 (patch) | |
| tree | 4e402c348b6fde5519d5f046f8b26eac80c8032a /tools/perf/scripts/python | |
| parent | 68539867c0dffca69c3d3556dd7637fdceb34194 (diff) | |
qcacld-3.0: Verify value before decrementing end_channel_idx
The local variable end_channel_idx in function hdd_ch_avoid_cb is
assigned value as per the available frequencies of different channels.
In the case the current channel frequency matches with an avoid
frequency range, the value is decremented by 1. When the value of
end_channel_idx is already 0, further decrementing it by one can lead to
out of bounds read.
Add a sanity check to assure that 0 is the minimum value that will be
assigned to end_channel_idx
Change-Id: I41b12c68b18271228083c79a060d7e6030ae356e
CRs-Fixed: 2260100
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
