Skip to content

Commit 64e5089

Browse files
committed
unlink is no longer a macro, but a function now
1 parent df11470 commit 64e5089

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

glibc_2.31/unsafe_unlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main()
4545
chunk1_hdr[1] &= ~1;
4646

4747
printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n");
48-
printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n");
48+
printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n");
4949
free(chunk1_ptr);
5050

5151
printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");

glibc_2.32/unsafe_unlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main()
4545
chunk1_hdr[1] &= ~1;
4646

4747
printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n");
48-
printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n");
48+
printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n");
4949
free(chunk1_ptr);
5050

5151
printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");

glibc_2.33/unsafe_unlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main()
4545
chunk1_hdr[1] &= ~1;
4646

4747
printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n");
48-
printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n");
48+
printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n");
4949
free(chunk1_ptr);
5050

5151
printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");

glibc_2.34/unsafe_unlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main()
4545
chunk1_hdr[1] &= ~1;
4646

4747
printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n");
48-
printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n");
48+
printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n");
4949
free(chunk1_ptr);
5050

5151
printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");

glibc_2.35/unsafe_unlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main()
4545
chunk1_hdr[1] &= ~1;
4646

4747
printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n");
48-
printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n");
48+
printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n");
4949
free(chunk1_ptr);
5050

5151
printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");

glibc_2.36/unsafe_unlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main()
4545
chunk1_hdr[1] &= ~1;
4646

4747
printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n");
48-
printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n");
48+
printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n");
4949
free(chunk1_ptr);
5050

5151
printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");

glibc_2.37/unsafe_unlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main()
4545
chunk1_hdr[1] &= ~1;
4646

4747
printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n");
48-
printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n");
48+
printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n");
4949
free(chunk1_ptr);
5050

5151
printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");

glibc_2.38/unsafe_unlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main()
4545
chunk1_hdr[1] &= ~1;
4646

4747
printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n");
48-
printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n");
48+
printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n");
4949
free(chunk1_ptr);
5050

5151
printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");

glibc_2.39/unsafe_unlink.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main()
4545
chunk1_hdr[1] &= ~1;
4646

4747
printf("Now we free chunk1 so that consolidate backward will unlink our fake chunk, overwriting chunk0_ptr.\n");
48-
printf("You can find the source of the unlink macro at https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=ef04360b918bceca424482c6db03cc5ec90c3e00;hb=07c18a008c2ed8f5660adba2b778671db159a141#l1344\n\n");
48+
printf("You can find the source of the unlink_chunk function at https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=1ecba1fafc160ca70f81211b23f688df8676e612\n\n");
4949
free(chunk1_ptr);
5050

5151
printf("At this point we can use chunk0_ptr to overwrite itself to point to an arbitrary location.\n");

0 commit comments

Comments
 (0)