Comment

Comment by hinkley

Listen to me now and hear me later:

Static allocation doesn’t eliminate use-after-free bugs, it just reduces them.

If you have mutable data structures, it’s still always possible to refer to something that used to have one meaning and now means something else. That’s still a use-after-free bug.

I was going to say that it’s similar to how GC can still have memory leaks, but in fact it’s the exact same problem: reachability of data that is no longer relevant/correct.

parent hinkley 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton