On Mon, 11 Sep 2023 17:52:44 +0000, Justin Stitt wrote:
> `strncpy` is deprecated for use on NUL-terminated destination strings [1].
>
> `gate_buf` should always be NUL-terminated and does not require
> NUL-padding. It is used as a string arg inside an argv array given to
> `run_helper()`. Due to this, let's use `strscpy` as it guarantees
> NUL-terminated on the destination buffer preventing potential buffer
> overreads [2].
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] um,ethertap: refactor deprecated strncpy
https://git.kernel.org/kees/c/d4e178fe19c9
Take care,
--
Kees Cook