Feng Jiang
c47a80cd14
exynos: Fix out-of-bounds access in exynos4210_gcomp_find debug printf
...
One of the debug printfs in exynos4210_gcomp_find() will
access outside the 's->g_timer.reg.comp[]' array if there
was no active comparator and 'res' is -1. Add a conditional
to avoid this.
This doesn't happen in normal use because the debug printfs
are by default not compiled in.
Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
Message-id: 20230404074506.112615-1-jiangfeng@kylinos.cn
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: Adjusted commit message to clarify that the overrun
only happens if you've enabled debug printfs]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-04-20 10:21:13 +01:00
..
2023-03-07 17:04:30 +00:00
2023-03-07 12:39:00 -05:00
2022-07-18 13:20:14 +01:00
2023-02-08 07:28:05 +01:00
2023-04-20 10:21:13 +01:00
2023-03-08 00:37:48 +01:00
2022-04-06 14:31:55 +02:00
2023-03-24 11:45:46 +01:00
2023-04-13 10:09:31 +01:00
2023-04-12 21:44:38 +02:00
2023-01-16 17:51:20 +01:00
2021-05-02 17:24:51 +02:00
2023-03-07 19:51:07 -05:00
2023-03-13 22:57:39 +04:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-02-27 22:29:02 +01:00
2023-03-13 15:39:31 +04:00
2023-04-11 14:13:29 +01:00
2023-04-05 13:31:52 +01:00
2023-03-24 11:45:33 +01:00
2023-03-20 12:43:50 +01:00
2023-03-22 15:06:57 +00:00
2023-01-08 01:54:22 -05:00
2023-01-08 01:54:22 -05:00
2023-03-10 14:31:37 +00:00
2023-04-04 19:29:13 +08:00
2023-03-22 15:06:57 +00:00
2023-03-22 15:06:57 +00:00
2023-02-27 13:27:05 +00:00
2023-03-08 00:37:48 +01:00
2023-03-09 10:22:50 +00:00
2023-03-28 13:10:55 +08:00
2022-10-17 16:15:10 -03:00
2023-02-27 22:29:01 +01:00
2023-04-12 12:03:09 +02:00
2023-03-03 17:11:22 +00:00
2023-03-22 15:06:57 +00:00
2023-03-11 17:17:18 +00:00
2023-03-07 19:51:07 -05:00
2023-03-30 15:03:36 +02:00
2021-05-02 17:24:50 +02:00
2023-03-22 15:06:57 +00:00
2023-02-08 07:28:05 +01:00
2023-02-08 07:28:05 +01:00
2023-03-22 15:06:57 +00:00
2023-03-20 12:43:50 +01:00
2022-10-27 11:34:31 +01:00
2023-02-27 09:15:39 +01:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2023-02-27 09:15:38 +01:00
2023-02-27 22:29:02 +01:00
2023-03-02 03:10:46 -05:00
2022-05-12 12:29:44 +02:00
2023-02-27 22:29:02 +01:00
2023-04-03 16:12:30 +01:00
2023-04-20 10:21:13 +01:00
2023-01-16 17:51:20 +01:00
2021-07-20 20:10:21 +02:00
2023-03-21 13:19:07 +00:00
2023-03-22 15:06:57 +00:00
2023-03-07 19:51:07 -05:00
2023-03-20 12:43:50 +01:00
2023-03-07 17:04:30 +00:00
2023-03-24 14:52:14 +00:00
2022-05-06 15:27:40 -07:00
2023-03-01 08:22:49 +00:00
2022-06-06 18:09:03 +00:00