3 ms·
Cool, ever since that rachelbythebay article [1] I was wondering how different libcs handle the issue! Nice to see that someone else confirming the behavior of
by krackers 3y ago
Cool, ever since that rachelbythebay article [1] I was wondering how different libcs handle the issue! Nice to see that someone else confirming the behavior of apple'c libc. It's not mentioned in the article, but while apple's libc seems to suffer from the use-after-free issue, if I'm reading it right it does seem to have locking for setenv/getenv [3]
[1] https://news.ycombinator.com/item?id=37908655 https://news.ycombinator.com/item?id=37908655
[2] https://news.ycombinator.com/item?id=37952916 https://news.ycombinator.com/item?id=37952916
[3] https://github.com/apple-open-source-mirror/Libc/blob/master/stdlib/FreeBSD/getenv.c https://github.com/apple-open-source-mirror/Libc/blob/master...