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

2023-10-26 Thread Kees Cook
On Tue, Oct 17, 2023 at 03:51:58PM -0700, Jeff Johnson wrote: > On 10/17/2023 2:12 PM, 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. > > > > `extra` is clearly

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

2023-10-17 Thread Jeff Johnson
On 10/17/2023 2:12 PM, 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. `extra` is clearly supposed to be NUL-terminated which is evident by the manual NUL-byte assignment

[PATCH] airo: replace deprecated strncpy with strscpy_pad

2023-10-17 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. `extra` is clearly supposed to be NUL-terminated which is evident by the manual NUL-byte assignment as well as its immediate usage with strlen().