mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 20:10:29 +00:00
Make redbean StoreAsset() work better
- Better UBSAN error messages - POSIX Advisory Locks polyfills - Move redbean manual to /.help.txt - System call memory safety in ASAN mode - Character classification now does UNICODE
This commit is contained in:
parent
919b6fec10
commit
690be544da
228 changed files with 3653 additions and 3015 deletions
2
third_party/zlib/internal.h
vendored
2
third_party/zlib/internal.h
vendored
|
@ -18,7 +18,7 @@ void crc_fold_copy(struct DeflateState *const, unsigned char *,
|
|||
const unsigned char *, long) hidden;
|
||||
unsigned crc_fold_512to32(struct DeflateState *const) hidden;
|
||||
void fill_window_sse(struct DeflateState *) hidden;
|
||||
void *zcalloc(void *, unsigned, unsigned) hidden;
|
||||
void *zcalloc(void *, uInt, uInt) hidden;
|
||||
void zcfree(void *, void *) hidden;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
2
third_party/zlib/zalloc.c
vendored
2
third_party/zlib/zalloc.c
vendored
|
@ -20,7 +20,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "third_party/zlib/zutil.internal.h"
|
||||
|
||||
void *zcalloc(void *opaque, unsigned items, unsigned size) {
|
||||
void *zcalloc(void *opaque, uInt items, uInt size) {
|
||||
return weaken(malloc)(items * size);
|
||||
}
|
||||
|
||||
|
|
4
third_party/zlib/zconf.h
vendored
4
third_party/zlib/zconf.h
vendored
|
@ -5,12 +5,12 @@
|
|||
#define STDC99
|
||||
#define MAX_MEM_LEVEL 9
|
||||
#define DEF_MEM_LEVEL 8
|
||||
#define MAX_WBITS 15 /* 32K LZ77 window */
|
||||
#define MAX_WBITS 15 /* 32K LZ77 window */
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
|
||||
typedef unsigned char Byte;
|
||||
typedef unsigned int uInt; /* 16 bits or more */
|
||||
typedef unsigned long uInt; /* 16 bits or more */
|
||||
typedef unsigned long uLong; /* 32 bits or more */
|
||||
typedef Byte Bytef;
|
||||
typedef char charf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue