diff options
| author | Atish Patra <[email protected]> | 2022-07-20 14:50:34 -0700 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-07-30 11:25:48 +0530 |
| commit | 860a376817f687db31b586ec7bcf9a1db1bce7b3 (patch) | |
| tree | f967f0e5423218d4e879257fa05500670f15ede0 /lib/utils/timer/objects.mk | |
| parent | 83db3af5f93dbbffb599af41c58e26a24b1abc1c (diff) | |
lib: sbi: Fix possible buffer overrun in counter validation
The active_events array is accessed with counter ID passed from the supervisor
software before the counter ID bound check. This may cause a buffer overrun
if a supervisor passes an invalid counter ID.
Fix this by moving the access part after the bound check.
Reported-by: Andrew Jones <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Signed-off-by: Atish Patra <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer/objects.mk')
0 files changed, 0 insertions, 0 deletions
