Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于chunk大小的分析。 #781

Open
dc198488 opened this issue May 11, 2021 · 1 comment
Open

关于chunk大小的分析。 #781

dc198488 opened this issue May 11, 2021 · 1 comment

Comments

@dc198488
Copy link

关于 chunk 的大小,包括ctf-wiki以及我能找到的所有视频对chunk大小的描写差不多,无非就是根据 x86 或 x64 有所不同,其大小必须是 2 * SIZE_SZ 的整数倍。如果申请的内存大小不是 2 * SIZE_SZ 的整数倍,会被转换满足大小的最小的 2 * SIZE_SZ 的倍数。32 位系统中,SIZE_SZ 是 4;64 位系统中,SIZE_SZ 是 8。但在 x86 系统下 >=glibc2.26 版本的情况下,大小并非像教程中所写的一样。
以下是我写的分析内容,如有不妥,请指正。
https://www.freebuf.com/articles/system/272335.html

@iromise
Copy link
Member

iromise commented May 11, 2021

@dc198488 欢迎 PR 来完善 Wiki 的内容~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants