Messages in this thread | | | Date | Mon, 5 Oct 2015 18:13:32 +0200 | From | Ingo Molnar <> | Subject | Re: [PATCH] string: Improve the generic strlcpy() implementation |
| |
* Ingo Molnar <mingo@kernel.org> wrote:
> > * Alexey Dobriyan <adobriyan@gmail.com> wrote: > > > I want to say two things: > > > > 1) strlcpy race > > > > > * In addition, the implementation is robust to the string changing out > > > * from underneath it, unlike the current strlcpy() implementation. > > > > Canonical OpenBSD version does byte-by-byte copying, > > this race is purely Linux invention. > > > > 2) strscpy() will copy garbage past NUL from source into destination. > > It won't fault but still, who knows what lies after string. > > So I think your argument is nonsense on several levels:
Oh, you are right strscpy() - I mis-read your mail.
So the argument that is nonsensical here is mine!
Thanks,
Ingo
| |