News for hackers. Stuff that matters.
Re:Git's list of banned C functions by Tempest1981 on Friday March 05, 2021 @11:48AM (#26358936)
Important to note that strcpy_s doesn't truncate, it aborts your app if it fails:

> "if the destination string size dest_size is too small, the invalid parameter handler is invoked"

> "The invalid parameter handler dispatch function calls the currently assigned invalid parameter handler. By default, the invalid parameter calls _invoke_watson, which causes the application to close and generate a mini-dump."

https://docs.microsoft.com/en-us/cpp/c-runtime-library/refer...

There are no comments on this comment yet.