3 ms·
> RAII + smart pointers eliminate the most pernicious memory management issues. No, they don't. Browsers have been using RAII and smart pointers for years and
by pcwalton 10y ago
> RAII + smart pointers eliminate the most pernicious memory management issues.
No, they don't. Browsers have been using RAII and smart pointers for years and years. The memory management-related vulnerabilities keep happening.
The biggest problem tends to be use-after-free, which smart pointers do absolutely nothing to mitigate.