Searched refs:MALLOC_GUARD_SIZE (Results 1 – 1 of 1) sorted by relevance
35 #define MALLOC_GUARD_SIZE 16 macro1259 const size_t allocate_size = size + (MALLOC_GUARD_SIZE * 2) + in _test_malloc()1265 ptr = (char*)(((size_t)block + MALLOC_GUARD_SIZE + sizeof(*block_info) + in _test_malloc()1269 memset(ptr - MALLOC_GUARD_SIZE, MALLOC_GUARD_PATTERN, MALLOC_GUARD_SIZE); in _test_malloc()1270 memset(ptr + size, MALLOC_GUARD_PATTERN, MALLOC_GUARD_SIZE); in _test_malloc()1273 block_info = (MallocBlockInfo*)(ptr - (MALLOC_GUARD_SIZE + in _test_malloc()1303 block_info = (MallocBlockInfo*)(block - (MALLOC_GUARD_SIZE + in _test_free()1307 char *guards[2] = {block - MALLOC_GUARD_SIZE, in _test_free()1312 for (j = 0; j < MALLOC_GUARD_SIZE; j++) { in _test_free()1378 free((char*)block_info + sizeof(*block_info) + MALLOC_GUARD_SIZE); in free_allocated_blocks()