3 ms·
No, it doesn't. There are many ways to get use after free using unique_ptr combined with references or this pointers.
by pcwalton 11y ago
No, it doesn't. There are many ways to get use after free using unique_ptr combined with references or this pointers.
- RotsiserMho 11y agoProtection != prevention
- pcwalton 11y agoI don't know what this means, but if you're implying that unique_ptr is good enough to prevent use after free in practice, that is obviously empirically false. Every browser engine, for example, uses C++11 and regularly has exploitable use after free.