You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Sami Vaarala 8bf5cf612c Example allocator with wiping/red zones 10 years ago
..
README.rst Example allocator with wiping/red zones 10 years ago
duk_alloc_torture.c Example allocator with wiping/red zones 10 years ago
duk_alloc_torture.h Example allocator with wiping/red zones 10 years ago

README.rst

==========================================
Allocator with memory wiping and red zones
==========================================

Example allocator that wipes memory on free and checks that no out-of-bounds
writes have been made to bytes just before and after the allocated area.

Valgrind is a better tool for detecting these memory issues, but it's not
available for all targets so you can use something like this to detect
memory lifecycle or out-of-bounds issues.