- Description
Adds a magic number to the beginning and the end of each allocated memory block, and checks this when the block is deleted or reallocated.
- When to use it
In general, this should be used as long as you are developing a program, unless you want to do speed tests.
- Configure option
This is enabled by default (but
--enable-alloc (CWDEBUG_ALLOC) must be enabled as well). Use
configure --disable-magic to disable it.
- See also:
- Overflow/Underflow Protection (Red Zones)