Messages in this thread | ![/](/images/icornerl.gif) | | Subject | Re: [PATCH] net: Replace strlcpy with strscpy | From | patchwork-bot+netdevbpf@kernel ... | Date | Tue, 04 Jul 2023 18:50:21 +0000 |
| |
Hello:
This patch was applied to netdev/net.git (main) by David S. Miller <davem@davemloft.net>:
On Mon, 3 Jul 2023 17:58:40 +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: - net: Replace strlcpy with strscpy https://git.kernel.org/netdev/net/c/ba7bdec3cbec
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| ![\](/images/icornerr.gif) |