by pjmlp · 10y ago · 0 comments
- Type safe enumerations
- Strings with guaranteed size (not missing '\0')
- No implicit conversions
- No undefined behaviour
- Validation of null pointers on access
- ...
Also, couldn't distros just provide a version of the library built with the AddressSanitizer[0] enabled as well? It would be slower, but should be much safer. Let the user choose? Not the ultimate solution, but for the short term.
[0] https://github.com/google/sanitizers/wiki/AddressSanitizer
[1] http://www.cs.rutgers.edu/~santosh.nagarakatte/softbound/
[1] https://blog.torproject.org/blog/tor-browser-55a4-hardened-r...