mfunyu / malloc

Find out the workings behind optimum memory management and recode it, as well as free and realloc.
2 stars 0 forks source link

[segfault] bug negative chunk size crash #24

Closed mfunyu closed 8 months ago

mfunyu commented 8 months ago
$> MallocShowAbbr=1 LD_PRELOAD=./libft_malloc.so LD_LIBRARY_PATH=. ./correction 3 2> file
 0x7ff23232bf30   ||       0xffffffffffffff71 | prev_size
------------------++--------------------------+
 0x7ff23232bf38   || 842179328 (0x7ff23232a308) |-|-| size
------------------++--------------------------+
 0x7ff23232bf40   ||                      0x0 | fd
------------------++--------------------------+
 0x7ff23232bf48   ||                      0x0 | bk
------------------++--------------------------+
 0x7ff23232bf50   ||                          | 
                  || [ 842179304 (0x7ff23232a2e8)] |
==================++==========================+