Hacker News new | past | comments | ask | show | jobs | submit login

I'm confused about the race conditions mentioned.

Can't you just copy a byte to a buffer checking for null, counting down the length.

At the assembly level you have to copy a byte at a time anyway.

I don't see why you'd want to check the entire length of the input string for strlcpy either. It seems less than optimal.

I'm guessing the people involved know more than me. So...?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: