Re: [PATCH v7 7/9] coredump: validate socket name as it is written
From: Christian Brauner
Date: Fri May 16 2025 - 09:29:45 EST
> > The third strscpy() argument is semantically supposed to be the
> > destination buffer size, not the amount of data to copy. For trivial
> > invocations like here, strscpy() actually allows you to leave out the
> > third argument.
>
> Eeeeewww, that's really implicit behavior. I can use the destination
Ah, I see the argument is optional. I thought you could pass 0 or
something weird.