4 ms·
It uses calloc() which then uses... the system library's malloc(). I'm not sure what utility this has --- all it does is add some headers and footers to the all
by userbinator 9y ago
It uses calloc() which then uses... the system library's malloc(). I'm not sure what utility this has --- all it does is add some headers and footers to the allocated block in an attempt to catch overflow writes, but practically all existing malloc()s do that already.
- hawkinsw 9y agoI wondered the same thing! If the goal is to add "debuggability", then there are other options out there too -- dmalloc and electric fence, to name just two. I went to the repo fully expecting to see a call to brk() somewhere in the code. Will
- tinus_hn 9y agoSeems like the header and footer are the same too. Odd choice.