News for hackers. Stuff that matters.
Re:Chromium project finds that 70% of security defects are m... by zetafunction on Sunday May 24, 2020 @07:31AM (#23290805)
Non-owning pointers are absolutely a problem if the object graph is large and complex enough. Many objects in Chromium have lifetimes managed by smart pointers, but unfortunately, that doesn't do anything to protect against code that mistakenly violates an invariant like "object X must always outlive Y due to these non-owning pointers". The problem is C++ turns a violation of lifetime invariants into undefined behavior rather than safely crashing.

There are no comments on this comment yet.