Skip to content

Commit

Permalink
Fix typo in "Unlink Exploit"
Browse files Browse the repository at this point in the history
  • Loading branch information
integeruser authored and DhavalKapil committed Jun 16, 2017
1 parent f0669dc commit cdeb3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attacks/unlink_exploit.md
Expand Up @@ -57,7 +57,7 @@ A new fake chunk is created in the 'data' part of `chunk1`. The `fd` and `bk` po
![Unlink before call to free](../assets/images/unlink_before_free.png)
Carefully, try to understand how `P->fd->bk == P` and `P->bd->fk == P` checks are passed. This shall give an intution regarding how to adjust the `fd` and `bk` pointers of the fake chunk.
Carefully, try to understand how `P->fd->bk == P` and `P->bk->fd == P` checks are passed. This shall give an intution regarding how to adjust the `fd` and `bk` pointers of the fake chunk.
As soon as `chunk2` is freed, it is handled as a small bin. Recall that previous and next chunks(by memory) are checked whether they are 'free' or not. If any chunk is detected as 'free', it is `unlinked` for the purpose of merging consecutive free chunks. The `unlink` MACRO executes the following two instructions that modify pointers:
Expand Down

0 comments on commit cdeb3a6

Please sign in to comment.