Files
cosmopolitan/third_party/zlib
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
..
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-12-06 16:20:21 -08:00
2020-06-15 07:18:57 -07:00
2020-12-27 17:18:44 -08:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-12-27 17:18:44 -08:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-12-27 17:18:44 -08:00
2020-12-27 17:18:44 -08:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00
2020-12-27 17:18:44 -08:00
2020-06-15 07:18:57 -07:00
2020-12-26 02:09:07 -08:00
2021-02-01 03:58:46 -08:00
2020-06-15 07:18:57 -07:00
2020-06-15 07:18:57 -07:00

Sourced from Chromium due to overextended influence by maintainers whose
important contributions in this field should be recognized by clarifying
claims of ownership for posterity. See also libc/str/undeflate.c