Re: [PATCH] crypto: qat - refactor deprecated strncpy

2023-09-19 Thread Herbert Xu
On Wed, Sep 13, 2023 at 12:51:05AM +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > `buf` is expected to be NUL-terminated for its eventual use in > `kstrtoul()` and N

Re: [PATCH] crypto: qat - refactor deprecated strncpy

2023-09-14 Thread Kees Cook
On Wed, Sep 13, 2023 at 12:51:05AM +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > `buf` is expected to be NUL-terminated for its eventual use in > `kstrtoul()` and N

Re: [PATCH] crypto: qat - refactor deprecated strncpy

2023-09-14 Thread Giovanni Cabiddu
On Wed, Sep 13, 2023 at 12:51:05AM +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > `buf` is expected to be NUL-terminated for its eventual use in > `kstrtoul()` and N