commit | 6d83f3c566b4d4757da28ff503f39e57397dbf87 | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Fri Mar 24 08:55:19 2023 +0100 |
committer | Patrice Chotard <patrice.chotard@foss.st.com> | Wed Apr 19 10:02:28 2023 +0200 |
tree | bc6f4a5b69b81b1761c2751511defabd97feb28a | |
parent | 1b4662a40962088b6a356e0d69f3e64b23f2e108 [diff] |
stm32mp: fix various array bounds checks 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@prevas.dk> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>