Messages in this thread | | | From | Kees Cook <> | Subject | Re: [PATCH] isdn: replace deprecated strncpy with strscpy | Date | Fri, 29 Sep 2023 12:37:26 -0700 |
| |
On Fri, 22 Sep 2023 11:58:06 +0000, 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 `iclock->name` to be NUL-terminated based on its use within > printk: > | printk(KERN_DEBUG "%s: %s %d\n", __func__, iclock->name, > | iclock->pri); > > [...]
Applied to for-next/hardening, thanks!
[1/1] isdn: replace deprecated strncpy with strscpy https://git.kernel.org/kees/c/a9b065a6751b
Take care,
-- Kees Cook
| |