4 ms·
Not an alternative, but an addon: https://github.com/rurban/safeclib https://github.com/rurban/safeclib for the secure Annex K extensions (the _s variants) The
by rurban 8y ago
Not an alternative, but an addon: https://github.com/rurban/safeclib https://github.com/rurban/safeclib
for the secure Annex K extensions (the _s variants)
The only safer alternatives are the Microsoft Windows msvcrt and ulibc w/ secure API, Android Bionic and Embarcadero C++ libc (embedded).
https://rurban.github.io/safeclib/doc/safec-3.3/d1/dae/md_doc_libc-overview.html https://rurban.github.io/safeclib/doc/safec-3.3/d1/dae/md_do... lists the various quirks with them.
glibc and the bsd's libc's are all unsafe on string and memory operations. With __FORTIFY_SOURCE=2 and -O2 they'll catch some bugs on wrong constant sizes, but not all found with the secure extensions or asan/valgrind.