4 ms·
I've read that malloc(3) will not always return errors when you expect them to [1]. Any comment on this? [1] http://news.ycombinator.com/item?id=4735589 http:/
by fruchtose 14y ago
I've read that malloc(3) will not always return errors when you expect them to [1]. Any comment on this?
[1] http://news.ycombinator.com/item?id=4735589 http://news.ycombinator.com/item?id=4735589
- Someone 14y agoIt is unlikely the world will change, so adjust your expectations. Also keep checking for error returns according to the API, though, as that is a 'not always'.
- klodolph 14y agoI expect it to fail when it runs out of address space, or when address space fragmentation prevents it from fulfilling the request. Isn't that exactly when it fails?