Searched refs:lite_pad (Results 1 – 1 of 1) sorted by relevance
547 static size_t lite_pad = 16; variable558 log_assert(size <= SIZE_MAX-(lite_pad*2+sizeof(size_t))); in unbound_stat_malloc_lite()559 res = malloc(size+lite_pad*2+sizeof(size_t)); in unbound_stat_malloc_lite()561 memmove(res, lite_pre, lite_pad); in unbound_stat_malloc_lite()562 memmove(res+lite_pad, &size, sizeof(size_t)); in unbound_stat_malloc_lite()563 memset(res+lite_pad+sizeof(size_t), 0x1a, size); /* init the memory */ in unbound_stat_malloc_lite()564 memmove(res+lite_pad+size+sizeof(size_t), lite_post, lite_pad); in unbound_stat_malloc_lite()565 return res+lite_pad+sizeof(size_t); in unbound_stat_malloc_lite()576 log_assert(req <= SIZE_MAX-(lite_pad*2+sizeof(size_t))); in unbound_stat_calloc_lite()577 res = malloc(req+lite_pad*2+sizeof(size_t)); in unbound_stat_calloc_lite()[all …]