]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | ========================================== |
2 | Allocator with memory wiping and red zones | |
3 | ========================================== | |
4 | ||
5 | Example allocator that wipes memory on free and checks that no out-of-bounds | |
6 | writes have been made to bytes just before and after the allocated area. | |
7 | ||
8 | Valgrind is a better tool for detecting these memory issues, but it's not | |
9 | available for all targets so you can use something like this to detect | |
10 | memory lifecycle or out-of-bounds issues. |