Re: [PATCH] bpf: Replace all non-returning strlcpy with strscpy

From: patchwork-bot+netdevbpf
Date: Wed May 31 2023 - 07:10:36 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@xxxxxxxxxxxxx>:

On Tue, 30 May 2023 15:56:59 +0000 you wrote:
> strlcpy() reads the entire source buffer first.
> This read may exceed the destination size limit.
> This is both inefficient and can lead to linear read
> overflows if a source string is not NUL-terminated [1].
> In an effort to remove strlcpy() completely [2], replace
> strlcpy() here with strscpy().
> No return values were used, so direct replacement is safe.
>
> [...]

Here is the summary with links:
- bpf: Replace all non-returning strlcpy with strscpy
https://git.kernel.org/bpf/bpf-next/c/ffadc372529e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html