[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<174002103182.825980.16973479436826416109.git-patchwork-notify@kernel.org>
Date: Thu, 20 Feb 2025 03:10:31 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Yu-Chun Lin <eleanor15x@...il.com>
Cc: marcelo.leitner@...il.com, lucien.xin@...il.com, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
linux-sctp@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, jserv@...s.ncku.edu.tw, visitorckw@...il.com
Subject: Re: [PATCH net] sctp: Fix undefined behavior in left shift operation
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Tue, 18 Feb 2025 16:12:16 +0800 you wrote:
> According to the C11 standard (ISO/IEC 9899:2011, 6.5.7):
> "If E1 has a signed type and E1 x 2^E2 is not representable in the result
> type, the behavior is undefined."
>
> Shifting 1 << 31 causes signed integer overflow, which leads to undefined
> behavior.
>
> [...]
Here is the summary with links:
- [net] sctp: Fix undefined behavior in left shift operation
https://git.kernel.org/netdev/net/c/606572eb22c1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists