hi lazyweb, is there a consensus about the best hardened-for-security memory allocation library for C and C++ right now?
-
-
Replying to @johnregehr
For general purpose mallocs, openbsd. Metadata and allocations never share pages.
1 reply 0 retweets 1 like -
Replying to @jacquesgt @johnregehr
IIRC jemalloc (originally developed for FreeBSD to replace phkmalloc) also has this segregation property; maybe it's what OpenBSD uses?
1 reply 0 retweets 0 likes -
Replying to @kragen @johnregehr
No OpenBSD has their own thing. I could be wrong but I think jemalloc will put metadata at the start of pages containing data.
2 replies 0 retweets 2 likes -
OpenBSD malloc will also reject free()ing any invalid address, which jemalloc won’t.https://github.com/robertbachmann/openbsd-libc/blob/master/stdlib/malloc.c …
4 replies 0 retweets 2 likes
Unless the invalid address happened to get allocated for something else... :-)
6:42 AM - 26 Jun 2017
0 replies
0 retweets
0 likes
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.