Hooks: hook the pure-allocation functions.

This commit is contained in:
David Goldblatt
2018-04-19 13:14:22 -07:00
committed by David Goldblatt
parent fe0e399385
commit 226327cf66
3 changed files with 184 additions and 8 deletions

View File

@@ -18,7 +18,7 @@
* hook is called. If it is moved, then the alloc hook is called on the new
* location, and then the free hook is called on the old location.
*
* (We omit no-ops, like free(NULL), etc.).
* If we return NULL from OOM, then usize might not be trustworthy.
*
* Reentrancy:
* Is not protected against. If your hooks allocate, then the hooks will be