4 ms·
smart pointers are a good start, but completely safe is a pretty big exaggeration. Just off the top of my head smart pointers do not protect against: - null p
by xwvvvvwx 8y ago
smart pointers are a good start, but completely safe is a pretty big exaggeration.
Just off the top of my head smart pointers do not protect against:
- null pointer dereferences
- out of bounds array access
- iterator invalidation
- dangling (non-owning) references
- pjmlp 8y agoNo, but C++ compilers like Visual Studio do. https://blogs.msdn.microsoft.com/vcblog/2017/08/11/c-core-guidelines-checker-in-visual-studio-2017/ https://blogs.msdn.microsoft.com/vcblog/2017/08/11/c-core-gu... https://blogs.msdn.microsoft.com/vcblog/2017/06/28/security-features-in-microsoft-visual-c/ https://blogs.msdn.microsoft.com/vcblog/2017/06/28/security-... https://docs.microsoft.com/en-us/cpp/security/security-best-practices-for-cpp https://docs.microsoft.com/en-us/cpp/security/security-best-...