mirror of
https://github.com/frida/tinycc
synced 2024-12-25 14:36:49 +03:00
dietlibc support
This commit is contained in:
parent
8da6027e73
commit
c52df4de38
4
bcheck.c
4
bcheck.c
@ -36,7 +36,7 @@
|
||||
|
||||
#define HAVE_MEMALIGN
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__dietlibc__)
|
||||
#warning Bound checking not fully supported on FreeBSD
|
||||
#undef CONFIG_TCC_MALLOC_HOOKS
|
||||
#undef HAVE_MEMALIGN
|
||||
@ -782,7 +782,7 @@ void *__bound_calloc(size_t nmemb, size_t size)
|
||||
{
|
||||
void *ptr;
|
||||
size = size * nmemb;
|
||||
ptr = __bound_malloc(size);
|
||||
ptr = __bound_malloc(size, NULL);
|
||||
if (!ptr)
|
||||
return NULL;
|
||||
memset(ptr, 0, size);
|
||||
|
Loading…
Reference in New Issue
Block a user