cosmopolitan/test/libc
Justine Tunney 3265324e00
Don't relocate file descriptor memory
This change fixes #496 where ASAN spotted a race condition that could
happen in multithreaded programs, with more than OPEN_MAX descriptors
when using ZipOS or Windows NT, which require tracking open file info
and this change fixes that table so it never relocates, thus allowing
us to continue to enjoy the benefits of avoiding locks while reading.
2022-09-09 16:54:28 -07:00
..
bits Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
calls Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00
dns Fold LIBC_RAND into LIBC_STDIO/TINYMATH/INTRIN 2022-08-11 12:32:00 -07:00
fmt Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00
intrin Perform more low-level code cleanup 2022-09-09 04:07:08 -07:00
log Clean up some code 2022-08-20 12:32:51 -07:00
mem Polyfill IPv6 on non-Linux 2022-09-08 06:06:22 -07:00
nexgen32e Make garbage collection thread safe 2022-09-08 02:33:01 -07:00
release Improve open source compatibility 2022-09-08 03:19:35 -07:00
runtime Perform more low-level code cleanup 2022-09-09 04:07:08 -07:00
sock Polyfill IPv6 on non-Linux 2022-09-08 06:06:22 -07:00
stdio Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00
str Add pthread attributes and other libc functions 2022-09-07 05:28:32 -07:00
thread Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00
time Remove testonly keyword 2022-09-05 08:41:43 -07:00
tinymath Add FP_ILOGB constants (#599) 2022-09-07 21:37:53 -07:00
x Fix race condition in makedirs() 2022-09-07 23:12:44 -07:00
xed Remove testonly keyword 2022-09-05 08:41:43 -07:00
zipos Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00
test.mk Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00