News for hackers. Stuff that matters.
Re:Ode to the use-after-free: one vulnerable function, a tho... by lossolo on Monday May 08, 2017 @01:40PM (#14293781)
If you have multiple pointers to the same data with different lifetimes you already need some kind of reference counting or garbage collection.
Re:Ode to the use-after-free: one vulnerable function, a tho... by pornel on Monday May 08, 2017 @02:05PM (#14294038)
Not necessarily. It's safe if lifetimes of the other pointers are guaranteed to be shorter than the lifetime of the object.
Re:Ode to the use-after-free: one vulnerable function, a tho... by lossolo on Monday May 08, 2017 @02:50PM (#14294411)
That's why I wrote "with different lifetimes".