Re: [PATCH] stm32mp: fix various array bounds checks

2023-04-19 Thread Patrice CHOTARD
On 3/24/23 10:39, Patrice CHOTARD wrote: > Hi Rasmus > > 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 a

Re: [PATCH] stm32mp: fix various array bounds checks

2023-03-30 Thread Patrick DELAUNAY
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 Vil

Re: [PATCH] stm32mp: fix various array bounds checks

2023-03-24 Thread Patrice CHOTARD
Hi Rasmus 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-of