Re: [PATCH v2 3/4] string: Allow 2-argument strscpy_pad()

2024-02-05 Thread Andy Shevchenko
On Mon, Feb 05, 2024 at 01:48:51PM +0100, Geert Uytterhoeven wrote: > On Mon, Feb 5, 2024 at 1:36 PM Kees Cook wrote: ... > > +#define __strscpy_pad1(dst, src, size) sized_strscpy_pad(dst, src, size) > > (dst) etc. Makes a little sense here. Are you expecting, e.g., dst to be 'a, b' (w/o quote

Re: [PATCH v2 3/4] string: Allow 2-argument strscpy_pad()

2024-02-05 Thread Geert Uytterhoeven
Hi Kees, On Mon, Feb 5, 2024 at 1:36 PM Kees Cook wrote: > Similar to strscpy(), update strscpy_pad()'s 3rd argument to be > optional when the destination is a compile-time known size array. > > Cc: Andy Shevchenko > Cc: linux-hardening@vger.kernel.org > Signed-off-by: Kees Cook Thanks for you