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

[bug] segfault on different alignment #11

Closed mfunyu closed 1 year ago

mfunyu commented 1 year ago
#define MALLOC_ALIGNMENT 8
int main()
{
    malloc(2);
    malloc(2);
}

segfault