Re: [PATCH] ibmvnic: Use strscpy() instead of strncpy()

2021-06-21 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 21 Jun 2021 14:35:09 -0700 you wrote: > Since these strings are expected to be NUL-terminated and the buffers > are exactly sized (in vnic_client_data_len()) with no padding, strncpy() > can be safely replaced with

[PATCH] ibmvnic: Use strscpy() instead of strncpy()

2021-06-21 Thread Kees Cook
Since these strings are expected to be NUL-terminated and the buffers are exactly sized (in vnic_client_data_len()) with no padding, strncpy() can be safely replaced with strscpy() here, as strncpy() on NUL-terminated string is considered deprecated[1]. This has the side-effect of silencing a -Warr