Re: [PATCH v5] net/ark: fix index arithmetic bug

2024-07-18 Thread Ferruh Yigit
On 7/17/2024 9:38 PM, Ed Czeck wrote: > Behavior for signed integer overflow is not defined > which can causes undesired behavior at values near > max and min bounds. > The used of unsigned is defined as to use modulo arithmetic > which is the desired behavior. > This patch replaces int32_t with ui

[PATCH v5] net/ark: fix index arithmetic bug

2024-07-17 Thread Ed Czeck
Behavior for signed integer overflow is not defined which can causes undesired behavior at values near max and min bounds. The used of unsigned is defined as to use modulo arithmetic which is the desired behavior. This patch replaces int32_t with uint32_t except for necessary casts. Fixes: 9ee9e0d