2021年3月9日星期二

Can I enforce sbrk return address to be within a certain specific range?

I want to make sure the return address of sbrk is within a certain specific range. I read somewhere that sbrk allocates from an area allocated at program initialization. So I'm wondering if there's anyway I can enforce the program initialization to allocate from a specific address? For example, with mmap, I'll be able to do so with MAP_FIXED_NOREPLACE . Is it possible to have something similar?

https://stackoverflow.com/questions/66558010/can-i-enforce-sbrk-return-address-to-be-within-a-certain-specific-range March 10, 2021 at 11:40AM

没有评论:

发表评论