summaryrefslogtreecommitdiff
path: root/lib/utils/timer
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2023-07-03 15:43:18 +0200
committerAnup Patel <[email protected]>2023-07-05 09:29:24 +0530
commiteb736a5118b8d271bd649d713b6a058882c8fb7b (patch)
treede7daea62dee16619ba9c3c7f0d1752c3ea30411 /lib/utils/timer
parent0907de38dbcd121d2f8b4bafaf7f9fe76092d5f1 (diff)
lib: sbi_pmu: Avoid out of bounds access
On a misconfigured system we could access phs->active_events[] out of bounds. Check that num_hw_ctrs is less or equal SBI_PMU_HW_CTR_MAX. Addresses-Coverity-ID: 1566113 ("Out-of-bounds read") Addresses-Coverity-ID: 1566114 ("Out-of-bounds write") Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer')
0 files changed, 0 insertions, 0 deletions