Re:What science can tell us about C and C++'s security (2020)
by est31 on Monday August 02, 2021 @01:13PM
(#28039504)
C++ is definitely better but it's still not memory safe. Compared to Rust, you still have little tracking which thread has access to which variable at which time. Even in modern C++, you still have to care about iterator invalidation.
[ Parent
| on HN ]
Re:What science can tell us about C and C++'s security (2020)
by mhh__ on Monday August 02, 2021 @01:33PM
(#28039860)
It's far from done, but the GCC static analyzer actually can find iterator invalidation!
Re:What science can tell us about C and C++'s security (2020)
by UncleMeat on Tuesday August 03, 2021 @09:01AM
(#28048618)
Some of it. Because a sound analysis would throw FPs up too frequently, they make the logical decision to use an unsound analysis. This is helpful, but cannot prevent the entire class of issues.