mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 06:12:27 +00:00
Fix important bugs in redbean
This change upgrades to the latest Chromium Zlib, fixes bugs in redbean, and introduces better support for reverse proxies like Cloudflare. This change improves the security of redbean and it's recommended that users upgrade to the release that'll follow. This change also updates the docs to clarify how to use the security tools redbean provides e.g. pledge(), unveil(), and the MODE=asan builds which improve memory safety.
This commit is contained in:
parent
994e1f4386
commit
775944a2d0
42 changed files with 8148 additions and 7298 deletions
19
third_party/zlib/internal.h
vendored
19
third_party/zlib/internal.h
vendored
|
@ -1,5 +1,6 @@
|
|||
#ifndef COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_
|
||||
#define COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_
|
||||
#include "libc/str/str.h"
|
||||
#include "third_party/zlib/deflate.internal.h"
|
||||
|
||||
#define Z_CRC32_SSE42_MINIMUM_LENGTH 64
|
||||
|
@ -8,16 +9,20 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
#define zmemzero bzero
|
||||
#define zmemcpy memmove
|
||||
#define z_const const
|
||||
|
||||
unsigned deflate_read_buf(z_streamp, Bytef *, unsigned) hidden;
|
||||
void copy_with_crc(z_streamp, Bytef *, long) hidden;
|
||||
void crc_finalize(struct DeflateState *const) hidden;
|
||||
void crc_reset(struct DeflateState *const) hidden;
|
||||
void crc_finalize(deflate_state *const) hidden;
|
||||
void crc_reset(deflate_state *const) hidden;
|
||||
uint32_t adler32_simd_(uint32_t, const unsigned char *, size_t) hidden;
|
||||
void crc_fold_init(struct DeflateState *const) hidden;
|
||||
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 crc_fold_init(deflate_state *const) hidden;
|
||||
void crc_fold_copy(deflate_state *const, unsigned char *, const unsigned char *,
|
||||
long) hidden;
|
||||
unsigned crc_fold_512to32(deflate_state *const) hidden;
|
||||
void fill_window_sse(deflate_state *) hidden;
|
||||
void *zcalloc(void *, uInt, uInt) hidden;
|
||||
void zcfree(void *, void *) hidden;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue