mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
- Emulator can now test the αcτµαlly pδrταblε εxεcµταblε bootloader - Whipped up a webserver named redbean. It services 150k requests per second on a single core. Bundling assets inside zip enables extremely fast serving for two reasons. The first is that zip central directory lookups go faster than stat() system calls. The second is that both zip and gzip content-encoding use DEFLATE, therefore, compressed responses can be served via the sendfile() system call which does an in-kernel copy directly from the zip executable structure. Also note that red bean zip executables can be deployed easily to all platforms, since these native executables work on Linux, Mac, BSD, and Windows. - Address sanitizer now works very well
22 lines
680 B
C
22 lines
680 B
C
#ifndef COSMOPOLITAN_LIBC_LOG_ASAN_H_
|
|
#define COSMOPOLITAN_LIBC_LOG_ASAN_H_
|
|
|
|
#define kAsanScale 3
|
|
#define kAsanMagic 0x7fff8000
|
|
#define kAsanHeapFree -1
|
|
#define kAsanStackFree -2
|
|
#define kAsanRelocated -3
|
|
#define kAsanHeapUnderrun -4
|
|
#define kAsanHeapOverrun -5
|
|
#define kAsanGlobalOverrun -6
|
|
#define kAsanGlobalUnregistered -7
|
|
#define kAsanStackUnderrun -8
|
|
#define kAsanStackOverrun -9
|
|
#define kAsanAllocaOverrun -10
|
|
#define kAsanUnscoped -11
|
|
|
|
#define SHADOW(x) (((x) >> kAsanScale) + kAsanMagic)
|
|
|
|
void __asan_map_shadow(void *, size_t);
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_LOG_ASAN_H_ */
|