Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Pedantically, you could say static allocations eliminate use-after-free() bugs.


use after free is really about the consequences of use-after-reuse. The bug is always there, but you don't notice the behavior until someone changes the data out from under you. Until someone reuses the memory allocation, your app appears to be working properly.


I understand your point. My comment was a weak attempt at being clever. Free (the concept) versus free(void* ptr) (the function call) - the latter would not be present without dynamic allocation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: