Re: [PATCH v2] qlcnic: replace deprecated strncpy with strscpy

2023-12-10 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller : On Thu, 07 Dec 2023 21:42:22 + you wrote: > strncpy() is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > We exp

Re: [PATCH v2] qlcnic: replace deprecated strncpy with strscpy

2023-12-08 Thread Kees Cook
On Thu, Dec 07, 2023 at 09:42:22PM +, Justin Stitt wrote: > strncpy() is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > We expect fw_info->fw_file_name to be NUL-terminated based on its use > w

[PATCH v2] qlcnic: replace deprecated strncpy with strscpy

2023-12-07 Thread Justin Stitt
strncpy() is deprecated for use on NUL-terminated destination strings [1] and as such we should prefer more robust and less ambiguous string interfaces. We expect fw_info->fw_file_name to be NUL-terminated based on its use within _request_firmware_prepare() wherein `name` refers to it: | if