3 ms·
With regards to malloc, what is the benefit of "random (delayed) free"?
by biot 11y ago
With regards to malloc, what is the benefit of "random (delayed) free"?
- chrismsnz 11y agoNot 100% sure, but I think this is to mitigate exploitation of UAF (Use After Free) flaws. Adding an unpredictable delay in between when an application frees some memory, and it becomes available for reuse elsewhere will likely reduce the window of vulnerability where an exploit may be able to leverage the issue.