mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 02:10:27 +00:00
ASAN mode has no PYMALLOC, so need a macro
also, des.c exceeded the stack frame size.
This commit is contained in:
parent
7c6f16b93b
commit
bf0b9de55f
2 changed files with 11 additions and 0 deletions
4
third_party/mbedtls/mbedtls.mk
vendored
4
third_party/mbedtls/mbedtls.mk
vendored
|
@ -58,6 +58,10 @@ o/$(MODE)/third_party/mbedtls/everest.o: \
|
||||||
OVERRIDE_CFLAGS += \
|
OVERRIDE_CFLAGS += \
|
||||||
-O3
|
-O3
|
||||||
|
|
||||||
|
o/$(MODE)/third_party/mbedtls/des.o: \
|
||||||
|
OVERRIDE_CFLAGS += \
|
||||||
|
-DSTACK_FRAME_UNLIMITED
|
||||||
|
|
||||||
o/$(MODE)/third_party/mbedtls/bigmul4.o \
|
o/$(MODE)/third_party/mbedtls/bigmul4.o \
|
||||||
o/$(MODE)/third_party/mbedtls/bigmul6.o: \
|
o/$(MODE)/third_party/mbedtls/bigmul6.o: \
|
||||||
OVERRIDE_CFLAGS += \
|
OVERRIDE_CFLAGS += \
|
||||||
|
|
7
third_party/python/Objects/obmalloc.c
vendored
7
third_party/python/Objects/obmalloc.c
vendored
|
@ -84,6 +84,13 @@ static void* _PyObject_Malloc(void *ctx, size_t size);
|
||||||
static void* _PyObject_Calloc(void *ctx, size_t nelem, size_t elsize);
|
static void* _PyObject_Calloc(void *ctx, size_t nelem, size_t elsize);
|
||||||
static void _PyObject_Free(void *ctx, void *p);
|
static void _PyObject_Free(void *ctx, void *p);
|
||||||
static void* _PyObject_Realloc(void *ctx, void *ptr, size_t size);
|
static void* _PyObject_Realloc(void *ctx, void *ptr, size_t size);
|
||||||
|
|
||||||
|
#else
|
||||||
|
/* in MODE=asan, no pymalloc, so use macro */
|
||||||
|
#define _PyObject_Malloc(ctx, size) _PyMem_RawMalloc((ctx), (size))
|
||||||
|
#define _PyObject_Calloc(ctx, nelem, elsize) _PyMem_RawCalloc((ctx), (nelem), (elsize))
|
||||||
|
#define _PyObject_Realloc(ctx, ptr, size) _PyMem_RawRealloc((ctx), (ptr), (size))
|
||||||
|
#define _PyObject_Free(ctx, p) _PyMem_RawFree((ctx), (p))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline void *
|
static inline void *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue