Replies: 1 comment
-
这里后向合并的 p 是用
然后
这里 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
这里后向合并的 p 是用
然后
这里 |
Beta Was this translation helpful? Give feedback.
-
linux pwn - glibc heap - 深入理解ptmalloc2 - 基础操作, 原文
“
free
”
源码:
"
/* consolidate backward */
if (!prev_inuse(p)) {
...
unlink(av, p, bck, fwd);
}
"
我认为顺序应该是先合并高地址chunk,再检查低地址chunk是否top chunk,如果不是top chunk再合并低地址chunk
Beta Was this translation helpful? Give feedback.
All reactions