Recently on LCA2019, Joel Sing made a presentation about "Security Vulnerability Mitigations"[1]
(very good, btw). He suggests function strlcpy(3) as a secure API.
In the same conference, though, Kees Cook ("Making C Less Dangerous in the Linux kernel"[2]), recommends strscpy() as more secure. So, my question is: what's the best to use?

Thanks in advance.


[1] https://youtube.com/watch?v=9-uNC4-RbQM
[2] https://youtube.com/watch?v=FY9SbqTO5GQ

Reply via email to