Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"The strncpy function within the Linux kernel has been a "persistent source of bugs" for years due to counter-intuitive semantics and behavior around NUL termination along with performance issues due to redundant zero-filling of the destination."

Huh. Whenever I've been asked to review C code, I always looked for strncpy and always found a bug with it.

 help



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

Search: