Re: [PATCH] fbdev: uvesafb: replace deprecated strncpy with strscpy_pad

2024-03-28 Thread Kees Cook
On Wed, Mar 20, 2024 at 11:04:44PM +, 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 v86d_path to be NUL-terminated based on its use with the > C-st

[PATCH] fbdev: uvesafb: replace deprecated strncpy with strscpy_pad

2024-03-20 Thread Justin Stitt
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 v86d_path to be NUL-terminated based on its use with the C-string format specifier in printf-likes: | pr_err("failed to execute %