cosmopolitan/libc/intrin
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
..
addvdi3.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
addvsi3.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
addvti3.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
asan.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
asan.internal.h Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
intrin.mk Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
macros.h Add chibicc 2020-12-06 16:20:21 -08:00
mpsadbw.c Change license 2020-12-27 17:18:44 -08:00
mpsadbw.h Make minor improvements 2020-12-23 23:42:56 -08:00
mpsadbws.S Change license 2020-12-27 17:18:44 -08:00
mulvdi3.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
mulvsi3.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
mulvti3.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
negvdi2.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
negvsi2.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
negvti2.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
onarithmeticoverflow.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
pabsb.c Change license 2020-12-27 17:18:44 -08:00
pabsb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pabsd.c Change license 2020-12-27 17:18:44 -08:00
pabsd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pabsw.c Change license 2020-12-27 17:18:44 -08:00
pabsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packssdw.c Change license 2020-12-27 17:18:44 -08:00
packssdw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packsswb.c Change license 2020-12-27 17:18:44 -08:00
packsswb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packusdw.c Change license 2020-12-27 17:18:44 -08:00
packusdw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packuswb.c Change license 2020-12-27 17:18:44 -08:00
packuswb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddb.c Change license 2020-12-27 17:18:44 -08:00
paddb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddd.c Change license 2020-12-27 17:18:44 -08:00
paddd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddq.c Change license 2020-12-27 17:18:44 -08:00
paddq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddsb.c Change license 2020-12-27 17:18:44 -08:00
paddsb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddsw.c Change license 2020-12-27 17:18:44 -08:00
paddsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddusb.c Change license 2020-12-27 17:18:44 -08:00
paddusb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddusw.c Change license 2020-12-27 17:18:44 -08:00
paddusw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddw.c Change license 2020-12-27 17:18:44 -08:00
paddw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
palignr.c Change license 2020-12-27 17:18:44 -08:00
palignr.h Make minor improvements 2020-12-23 23:42:56 -08:00
palignrs.S Change license 2020-12-27 17:18:44 -08:00
pand.c Change license 2020-12-27 17:18:44 -08:00
pand.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pandn.c Change license 2020-12-27 17:18:44 -08:00
pandn.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pavgb.c Change license 2020-12-27 17:18:44 -08:00
pavgb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pavgw.c Change license 2020-12-27 17:18:44 -08:00
pavgw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqb.c Change license 2020-12-27 17:18:44 -08:00
pcmpeqb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqd.c Change license 2020-12-27 17:18:44 -08:00
pcmpeqd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqw.c Change license 2020-12-27 17:18:44 -08:00
pcmpeqw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtb.c Change license 2020-12-27 17:18:44 -08:00
pcmpgtb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtd.c Change license 2020-12-27 17:18:44 -08:00
pcmpgtd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtw.c Change license 2020-12-27 17:18:44 -08:00
pcmpgtw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pdep.c Change license 2020-12-27 17:18:44 -08:00
pdep.h Make improvements 2020-12-01 03:43:40 -08:00
pext.c Change license 2020-12-27 17:18:44 -08:00
pext.h Make improvements 2020-12-01 03:43:40 -08:00
phaddd.c Change license 2020-12-27 17:18:44 -08:00
phaddd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phaddsw.c Change license 2020-12-27 17:18:44 -08:00
phaddsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phaddw.c Change license 2020-12-27 17:18:44 -08:00
phaddw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubd.c Change license 2020-12-27 17:18:44 -08:00
phsubd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubsw.c Change license 2020-12-27 17:18:44 -08:00
phsubsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubw.c Change license 2020-12-27 17:18:44 -08:00
phsubw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaddubsw.c Change license 2020-12-27 17:18:44 -08:00
pmaddubsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaddwd.c Change license 2020-12-27 17:18:44 -08:00
pmaddwd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaxsw.c Change license 2020-12-27 17:18:44 -08:00
pmaxsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaxub.c Change license 2020-12-27 17:18:44 -08:00
pmaxub.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pminsw.c Change license 2020-12-27 17:18:44 -08:00
pminsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pminub.c Change license 2020-12-27 17:18:44 -08:00
pminub.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmovmskb.c Change license 2020-12-27 17:18:44 -08:00
pmovmskb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhrsw.c Change license 2020-12-27 17:18:44 -08:00
pmulhrsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhuw.c Change license 2020-12-27 17:18:44 -08:00
pmulhuw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhw.c Change license 2020-12-27 17:18:44 -08:00
pmulhw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulld.c Change license 2020-12-27 17:18:44 -08:00
pmulld.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmullw.c Change license 2020-12-27 17:18:44 -08:00
pmullw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmuludq.c Change license 2020-12-27 17:18:44 -08:00
pmuludq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
por.c Change license 2020-12-27 17:18:44 -08:00
por.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psadbw.c Change license 2020-12-27 17:18:44 -08:00
psadbw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufb.c Change license 2020-12-27 17:18:44 -08:00
pshufb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufd.c Change license 2020-12-27 17:18:44 -08:00
pshufd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufhw.c Change license 2020-12-27 17:18:44 -08:00
pshufhw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshuflw.c Change license 2020-12-27 17:18:44 -08:00
pshuflw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufw.c Change license 2020-12-27 17:18:44 -08:00
pshufw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignb.c Change license 2020-12-27 17:18:44 -08:00
psignb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignd.c Change license 2020-12-27 17:18:44 -08:00
psignd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignw.c Change license 2020-12-27 17:18:44 -08:00
psignw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslld.c Change license 2020-12-27 17:18:44 -08:00
pslld.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslldq.c Change license 2020-12-27 17:18:44 -08:00
pslldq.h Make minor improvements 2020-12-23 23:42:56 -08:00
pslldqs.S Change license 2020-12-27 17:18:44 -08:00
pslldv.c Change license 2020-12-27 17:18:44 -08:00
psllq.c Change license 2020-12-27 17:18:44 -08:00
psllq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllqv.c Change license 2020-12-27 17:18:44 -08:00
psllw.c Change license 2020-12-27 17:18:44 -08:00
psllw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllwv.c Change license 2020-12-27 17:18:44 -08:00
psrad.c Change license 2020-12-27 17:18:44 -08:00
psrad.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psradv.c Change license 2020-12-27 17:18:44 -08:00
psraw.c Change license 2020-12-27 17:18:44 -08:00
psraw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrawv.c Change license 2020-12-27 17:18:44 -08:00
psrld.c Change license 2020-12-27 17:18:44 -08:00
psrld.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrldq.c Change license 2020-12-27 17:18:44 -08:00
psrldq.h Make minor improvements 2020-12-23 23:42:56 -08:00
psrldqs.S Change license 2020-12-27 17:18:44 -08:00
psrldv.c Change license 2020-12-27 17:18:44 -08:00
psrlq.c Change license 2020-12-27 17:18:44 -08:00
psrlq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlqv.c Change license 2020-12-27 17:18:44 -08:00
psrlw.c Change license 2020-12-27 17:18:44 -08:00
psrlw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlwv.c Change license 2020-12-27 17:18:44 -08:00
psubb.c Change license 2020-12-27 17:18:44 -08:00
psubb.h Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
psubd.c Change license 2020-12-27 17:18:44 -08:00
psubd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubq.c Change license 2020-12-27 17:18:44 -08:00
psubq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubsb.c Change license 2020-12-27 17:18:44 -08:00
psubsb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubsw.c Change license 2020-12-27 17:18:44 -08:00
psubsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubusb.c Change license 2020-12-27 17:18:44 -08:00
psubusb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubusw.c Change license 2020-12-27 17:18:44 -08:00
psubusw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubw.c Change license 2020-12-27 17:18:44 -08:00
psubw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhbw.c Change license 2020-12-27 17:18:44 -08:00
punpckhbw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhdq.c Change license 2020-12-27 17:18:44 -08:00
punpckhdq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhqdq.c Change license 2020-12-27 17:18:44 -08:00
punpckhqdq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhwd.c Change license 2020-12-27 17:18:44 -08:00
punpckhwd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklbw.c Change license 2020-12-27 17:18:44 -08:00
punpcklbw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckldq.c Change license 2020-12-27 17:18:44 -08:00
punpckldq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklqdq.c Change license 2020-12-27 17:18:44 -08:00
punpcklqdq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklwd.c Change license 2020-12-27 17:18:44 -08:00
punpcklwd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pxor.c Change license 2020-12-27 17:18:44 -08:00
pxor.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
repmovsb.h Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
repstosb.h Make improvements 2020-09-14 00:02:34 -07:00
shufpd.c Change license 2020-12-27 17:18:44 -08:00
shufpd.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
shufps.c Change license 2020-12-27 17:18:44 -08:00
shufps.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
somanyasan.S Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
subvdi3.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
subvsi3.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
subvti3.S Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00