๐ Bug HuntC C Hardโก+35 XP
Double Free
This code causes heap corruption.
๐ Find the bug
1
int *p = malloc(sizeof(int));2
*p = 42;3
free(p);4
free(p);๐ The bug is on line 4
This code causes heap corruption.
int *p = malloc(sizeof(int));*p = 42;free(p);free(p);