[PATCH] stm32mp: fix various array bounds checks
Patrick DELAUNAY
patrick.delaunay at foss.st.com
Thu Mar 30 13:28:28 CEST 2023
Hi,
On 3/24/23 08:55, Rasmus Villemoes wrote:
> In all these cases, the index on the LHS is immediately afterwards
> used to access the array appearing in the ARRAY_SIZE() on the RHS - so
> if that index is equal to the array size, we'll access
> one-past-the-end of the array.
>
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
> ---
>
> Patch generated with '-U5' to make that access obvious from the diff context.
>
> arch/arm/mach-stm32mp/cpu.c | 4 ++--
> board/st/stm32mp1/stm32mp1.c | 2 +-
> drivers/ram/stm32mp1/stm32mp1_interactive.c | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
Thanks
Patrick
More information about the U-Boot
mailing list