hi lazyweb, is there a consensus about the best hardened-for-security memory allocation library for C and C++ right now?
-
-
I take John's question to be “without instrumenting accesses”, & then, shouldn't free() be munmap()? (w/o ever reusing addresses, of course)
-
munmap & not reusing are mutually exclusive. Could mprotect PROT_NONE.
-
I had assume you were mmapping at addresses of your choosing, keeping track of addresses in use yourself, able to choose not to reuse.
-
I now see you literally meant “two mmap calls for malloc” and nothing more.
-
Which is simpler, if you are sure mmap doesn't place all the guard pages conveniently together at the end of the address space?
-
I meant the first one for the full range with guard and the second MAP_FIXED over top of the beginning for the usable space.
-
But mprotect would probably work just as well for making the usable space.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.