Re: [PATCH] firmware: tegra: bpmp: refactor deprecated strncpy
From: Kees Cook
Date: Fri Sep 29 2023 - 14:46:21 EST
On Wed, 13 Sep 2023 19:38:44 +0000, Justin Stitt wrote:
> `strncpy` is deprecated for use on NUL-terminated destination strings [1].
>
> We should prefer more robust and less ambiguous string interfaces.
>
> It seems like the filename stored at `namevirt` is expected to be
> NUL-terminated.
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] firmware: tegra: bpmp: refactor deprecated strncpy
https://git.kernel.org/kees/c/5a4b8c16f53f
Take care,
--
Kees Cook