cosmopolitan/tool
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
..
build Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
calc Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
decode Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
emacs Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
hash Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
net Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
scripts Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
viz Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
tool.mk Add chibicc 2020-12-06 16:20:21 -08:00