Archives
All posts for the day May 5th, 2014
heap overflow 1. malloc兩個空間 然後第一個overflow蓋掉第二個部分欄位 2. 然後讓第二個內存看起來已經被釋放 3. 利用free掉之後就會有呼叫unlink macro合併兩個free chunk 4. chunk3->bk = chunk2->bk 轉換成 chunk2->fd + 12 = chunk2->bk 5. 所以就可以在fd的記憶體位置寫入bk的記憶體內容, OP