Re: [PATCH] init: replace deprecated strncpy with strscpy_pad

2024-04-29 Thread Kees Cook
On Tue, 02 Apr 2024 20:39:49 +, 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. > > data_page wants to be NUL-terminated and NUL-padded, use strscpy_pad to > provi

Re: [PATCH] init: replace deprecated strncpy with strscpy_pad

2024-04-04 Thread Kees Cook
On Tue, Apr 02, 2024 at 08:39:49PM +, 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. > > data_page wants to be NUL-terminated and NUL-padded, use strscpy_pad to >

[PATCH] init: replace deprecated strncpy with strscpy_pad

2024-04-02 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. data_page wants to be NUL-terminated and NUL-padded, use strscpy_pad to provide both of these. data_page no longer awkwardly relies on init_mount