Re: [PATCH] exynos: Fix out-of-bounds access in exynos4210_gcomp_find

2023-04-13 Thread Feng Jiang
On Tue, 2023-04-11 at 14:02 +0100, Peter Maydell wrote: > On Tue, 4 Apr 2023 at 08:45, Feng Jiang wrote: > > > > When 'res' equals -1, the array 's->g_timer.reg.comp[]' is accessed > > out of bounds. > > > > Signed-off-by:

[PATCH] exynos: Fix out-of-bounds access in exynos4210_gcomp_find

2023-04-04 Thread Feng Jiang
When 'res' equals -1, the array 's->g_timer.reg.comp[]' is accessed out of bounds. Signed-off-by: Feng Jiang --- hw/timer/exynos4210_mct.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/timer/exynos4210_mct.c b/hw/timer/exynos4210