[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<176439062377.907626.14135702597040681363.git-patchwork-notify@kernel.org>
Date: Sat, 29 Nov 2025 04:30:23 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Thorsten Blum <thorsten.blum@...ux.dev>
Cc: david.laight@...box.com, davem@...emloft.net, dsahern@...nel.org,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com, horms@...nel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v2] net: ipconfig: Replace strncpy with strscpy
in
ic_proto_name
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Wed, 26 Nov 2025 23:08:05 +0100 you wrote:
> strncpy() is deprecated [1] for NUL-terminated destination buffers
> because it does not guarantee NUL termination. Replace it with strscpy()
> to ensure the destination buffer is always NUL-terminated and to avoid
> any additional NUL padding.
>
> Although the identifier buffer has 252 usable bytes, strncpy() copied
> only up to 251 bytes to the zero-initialized buffer, relying on the last
> byte to act as an implicit NUL terminator. Switching to strscpy() avoids
> this implicit behavior and does not use magic numbers.
>
> [...]
Here is the summary with links:
- [net-next,v2] net: ipconfig: Replace strncpy with strscpy in ic_proto_name
https://git.kernel.org/netdev/net-next/c/ff736a286116
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