summaryrefslogtreecommitdiff
path: root/lib/utils/timer/objects.mk
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2023-09-28 15:03:57 +0200
committerAnup Patel <[email protected]>2023-10-06 17:29:07 +0530
commitf831b93357dd5858ba0f610f1f21f7bc599decb1 (patch)
tree755e444de08deb6132e8b99f7a55bb228a9d50ec /lib/utils/timer/objects.mk
parent942aca232ec8e412160bdc9cd3331a63eaf1ff24 (diff)
lib: sbi_pmu: check for index overflows
sbi_pmu_ctr_cfg_match() receives data from a lower privilege level mode. We must catch maliciously wrong values. We already check against total_ctrs. But we do not check that total_ctrs is less than SBI_PMU_HW_CTR_MAX + SBI_PMU_FW_CTR_MAX. Check that the number of hardware counters is in the valid range. Addresses-Coverity-ID: 1566114 Out-of-bounds write Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'lib/utils/timer/objects.mk')
0 files changed, 0 insertions, 0 deletions