1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-09 03:39:17 +01:00
Files
u-boot-megous/drivers
Samuel Holland 6827aba348 clk: sunxi: Prevent out-of-bounds gate array access
Because the gate arrays are not given explicit sizes, the arrays are
only as large as the highest-numbered gate described in the driver.
However, only a subset of the CCU clocks are needed by U-Boot. So there
are valid clock specifiers with indexes greater than the size of the
arrays. Referencing any of these clocks causes out-of-bounds access.
Fix this by checking the identifier against the size of the array.

Fixes: 0d47bc7056 ("clk: Add Allwinner A64 CLK driver")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2022-07-18 09:37:49 +01:00
..
2022-04-25 09:25:00 +02:00
2022-06-24 14:16:00 +02:00
2021-10-05 08:50:15 -04:00
2022-07-11 14:58:57 -04:00
2022-01-13 07:57:49 -05:00
2022-01-13 07:57:49 -05:00
2022-07-11 14:58:57 -04:00
2022-06-08 14:00:22 -04:00
2022-05-03 21:39:22 +02:00
2022-07-11 14:58:57 -04:00
2021-10-01 21:08:18 -04:00