On Mon, 11 Sep 2023 20:51:04 +0000, Justin Stitt wrote: > `strncpy` is deprecated and as such we should prefer more robust and > less ambiguous interfaces. > > In this case, all of `press_str`, `repeat_str` and `release_str` are > explicitly marked as nonstring: > | struct { /* valid when type == INPUT_TYPE_KBD */ > | char press_str[sizeof(void *) + sizeof(int)] __nonstring; > | char repeat_str[sizeof(void *) + sizeof(int)] __nonstring; > | char release_str[sizeof(void *) + sizeof(int)] __nonstring; > | } kbd; > > [...]
Applied to for-next/hardening, thanks! [1/1] auxdisplay: panel: refactor deprecated strncpy https://git.kernel.org/kees/c/0456f788873d Take care, -- Kees Cook