cosmopolitan/test/libc
Justine Tunney 1ff9ab95ac Make C memory safe like Rust
This change enables Address Sanitizer systemically w/ `make MODE=dbg`.
Our version of Rust's `unsafe` keyword is named `noasan` which is used
for two functions that do aligned memory chunking, like `strcpy.c` and
we need to fix the tiny DEFLATE code, but that's it everything else is
fabulous you can have all the fischer price security blankets you need

Best of all is we're now able to use the ASAN data in Blinkenlights to
colorize the memory dumps. See the screenshot below of a test program:

  https://justine.lol/blinkenlights/asan.png

Which is operating on float arrays stored on the stack, with red areas
indicating poisoned memory, and the green areas indicate valid memory.
2021-02-01 03:58:46 -08:00
..
alg Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
bits Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
calls Improve fcntl(F_{SET,GET}FL) implementation (#32) 2021-01-30 13:10:32 -08:00
crypto Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
dns Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
fmt Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
intrin Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
mem Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
nexgen32e Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
rand Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
release Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
runtime Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
sock Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
stdio Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
str Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
time Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
tinymath Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
unicode Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
x Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
xed Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
test.mk Remove sun musl fdlibm math library 2021-01-31 18:25:16 -08:00