3 ms·
Interestingly even the Annex K strncpy_s and strncat_s are unsafe by design, that's why I only added them to the safeclib via --enable-unsafe. But recently I g
by rurban 8y ago
Interestingly even the Annex K strncpy_s and strncat_s are unsafe by design, that's why I only added them to the safeclib via --enable-unsafe.
But recently I got fed with all this unsafety nonsense with the truncating variants and changed the implementation to always terminate the asciiz string properly.
https://github.com/rurban/safeclib/blob/master/src/str/strncat_s.c https://github.com/rurban/safeclib/blob/master/src/str/strnc...