A database without dynamic memory allocation
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.