The advantages of avoiding the heap (points I'll belabor extensively later): It's easy to prove 0 UaF, 0 double-free, 0 memory leaks, etc.
-
-
Replying to @BRIAN_____
Returning a pointer to a stack-allocated thing can still cause use-after-"free", can't it?
1 reply 0 retweets 2 likes
Replying to @SimonSapin
Yes. But we don't return pointers. We only take pointers as inputs and never store pointers in structs in the heap-free code.
8:35 AM - 10 Jul 2016
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.