Re: [PATCH] hfsplus: refactor copy_name to not use strncpy

2024-03-28 Thread Kees Cook
On Thu, Mar 21, 2024 at 11:46:27PM +, Justin Stitt wrote: > strncpy() is deprecated with NUL-terminated destination strings [1]. > > The copy_name() method does a lot of manual buffer manipulation to > eventually arrive with its desired string. If we don't know the > namespace this attr has or

[PATCH] hfsplus: refactor copy_name to not use strncpy

2024-03-21 Thread Justin Stitt
strncpy() is deprecated with NUL-terminated destination strings [1]. The copy_name() method does a lot of manual buffer manipulation to eventually arrive with its desired string. If we don't know the namespace this attr has or belongs to we want to prepend "osx." to our final string. Following thi