News for hackers. Stuff that matters.
Re:You can't Rust that by gmueckl on Saturday March 31, 2018 @04:10PM (#16724940)
But these vulnerabilities can only happen if reference counting is not automatic, right?
Re:You can't Rust that by pcwalton on Saturday March 31, 2018 @04:28PM (#16725016)
No, because of the way references in C++ work—you can take a reference to the inside of a reference counted object without manipulating the reference count.

They could also happen if you used non-thread-safe reference counting on a thread-safe object. Now this seems to be rare in practice, because non-thread-safe reference counting is unusual. If it became more prevalent, however, I could see it happening.