liboom 1.0.1
Debugging helper library with Memory leak detection
|
C memory management diverters. More...
Go to the source code of this file.
Functions | |
void | oomstub_setcountdown (const int counter) |
Sets the malloc countdown before triggering a failure. More... | |
int | oomstub_getcountdown () |
Gets the current malloc countdown before triggering a failure. More... | |
C memory management diverters.
This file implements fake malloc, free and realloc functions which can fail and simulate OOM after a countdown. This library is not threadsafe. Inspired from https://github.com/bkthomps/Containers test suite
Definition in file oomstub.h.
int oomstub_getcountdown | ( | ) |