Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: Sabotaging yourself: Closing a handle and then using it

$
0
0

Cesar: There are probably tons of programs out there that assume a malloc will return memory at the address that was last freed. Odds are they free some data structure, then allocate a new one and forget to initialized it, unwittingly relying on the fact that the memory still contains an initialized data structure from before.

These apps will break when you change the heap allocator, requiring a compatibility shim if the heap behavior changes enough.


Viewing all articles
Browse latest Browse all 24428

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>