4 ms·
Nope. The buffer size is checked at compile-time. Much like glibc fortify, just better. There's no chance to mix them up. Even the spec'd unsafeties of the trun
by rurban 8y ago
Nope. The buffer size is checked at compile-time. Much like glibc fortify, just better.
There's no chance to mix them up.
Even the spec'd unsafeties of the truncating n versions are fixed.
- pjmlp 8y agoCan you please explain how strcpy_s() validates that dest actually points to a memory region with enough space for destsz bytes? https://en.cppreference.com/w/c/string/byte/strcpy https://en.cppreference.com/w/c/string/byte/strcpy