cosmopolitan/examples
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
..
package Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
auto-launch-gdb-on-crash.c Make improvements 2020-12-01 03:43:40 -08:00
breakpoint.c Initial import 2020-06-15 07:18:57 -07:00
cp.c Fold conv package into fmt 2020-12-09 16:52:00 -08:00
cplusplus.cc Change license 2020-12-27 17:18:44 -08:00
crashreport.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
ctrlc.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
date.c Initial import 2020-06-15 07:18:57 -07:00
dinlerp.c Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
echo.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
examples.mk Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
exec.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
findprime.c Fold conv package into fmt 2020-12-09 16:52:00 -08:00
fork.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
forkrand.c Make improvements 2020-12-01 03:43:40 -08:00
generalized-automatic-datastructure-printing.c Initial import 2020-06-15 07:18:57 -07:00
gui.c Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
hangman.c Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
hello.c Get fork() working on Windows 2020-11-13 03:14:39 -08:00
hello.js Initial import 2020-06-15 07:18:57 -07:00
hello2.c Add pseudoteletypewriter to emulator 2020-08-29 23:51:09 -07:00
hello3.c Initial import 2020-06-15 07:18:57 -07:00
hello4.c Initial import 2020-06-15 07:18:57 -07:00
hellojs.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
hostname.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
invtsc.c Add chibicc 2020-12-06 16:20:21 -08:00
ispell.c Fold conv package into fmt 2020-12-09 16:52:00 -08:00
kilo.c Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
life.c Initial import 2020-06-15 07:18:57 -07:00
ls.c Make improvements 2020-09-14 00:02:34 -07:00
lstime.c Improve documentation 2020-12-27 07:02:35 -08:00
mappy.c Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
nesemu1.cc Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
peek.c Change license 2020-12-27 17:18:44 -08:00
pipe.c Change license 2020-12-27 17:18:44 -08:00
poll.c Initial import 2020-06-15 07:18:57 -07:00
printargs.c Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
printprimes.c Fold conv package into fmt 2020-12-09 16:52:00 -08:00
rawmode.c Initial import 2020-06-15 07:18:57 -07:00
rusage.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
sleep.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
spawn.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
stat.c Fix metal bugs so deathstar.com runs in qemu (#20) 2021-01-16 17:52:15 -08:00
system.c Fix XNU / FreeBSD / OpenBSD / RHEL5 / NT bugs 2021-01-25 18:31:17 -08:00
tiny-raw-linux-tutorial.S Change license 2020-12-27 17:18:44 -08:00
ttyinfo.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
uname.c Initial import 2020-06-15 07:18:57 -07:00
unbourne.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
x86split.c Implement getcwd() for XNU 2021-01-30 08:54:12 -08:00