Recode the standard LIBC function malloc realloc calloc free realloc_array in c using a best fit algorithm
make
This will compile a shared library called libmy_malloc.so
.
You can try to launch different programs by using the
LD_PRELOAD=$(pwd)/libmy_malloc.so program_name
command.
Example :
LD_PRELOAD=$(pwd)/libmy_malloc.so ls -l
will launch the ls program with -l flag.
make tests_run
- Niels Hoez - nielshoez
This project is licensed under the MIT License - see the LICENSE file for details