News for hackers. Stuff that matters.
Re:Chromium project finds that 70% of security defects are m... by littlestymaar on Sunday May 24, 2020 @08:25AM (#23291005)
> C++ does sort of have a safe subset.

The “sort of” is what matters though:

- With std::unique_ptr, you trade use-after-free for use-after-move. Rarer, but still a threat.

- std::shared_ptr is costly which makes it unsuitable for some uses, and you can still have data rave with it if you don't use it correctly.

There are no comments on this comment yet.