RE: [Intel-wired-lan] [PATCH v1 net-next 5/7] igb: replace deprecated strncpy with strscpy

2023-10-16 Thread Pucha, HimasekharX Reddy
rg; Justin Stitt ; > intel-wired-...@lists.osuosl.org; linux-hardening@vger.kernel.org; > linux-ker...@vger.kernel.org > Subject: [Intel-wired-lan] [PATCH v1 net-next 5/7] igb: replace deprecated > strncpy with strscpy > > `strncpy` is deprecated for use on NUL-terminated de

[PATCH v1 net-next 5/7] igb: replace deprecated strncpy with strscpy

2023-10-10 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 see that netdev->name is expected to be NUL-terminated based on its usage with format strings: | sprintf(q_vector->name, "%s-TxRx-%u", n