Re: [PATCH] sctp: prefer struct_size over open coded arithmetic
From: patchwork-bot+netdevbpf
Date: Tue Apr 30 2024 - 06:00:42 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Sat, 27 Apr 2024 19:23:36 +0200 you wrote:
> This is an effort to get rid of all multiplications from allocation
> functions in order to prevent integer overflows [1][2].
>
> As the "ids" variable is a pointer to "struct sctp_assoc_ids" and this
> structure ends in a flexible array:
>
> struct sctp_assoc_ids {
> [...]
> sctp_assoc_t gaids_assoc_id[];
> };
>
> [...]
Here is the summary with links:
- sctp: prefer struct_size over open coded arithmetic
https://git.kernel.org/netdev/net-next/c/e5c5f3596de2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html