Lines Matching refs:MALLOC_GUARD_SIZE
61 #define MALLOC_GUARD_SIZE 16
1582 const size_t allocate_size = size + (MALLOC_GUARD_SIZE * 2) +
1588 ptr = (char*)(((size_t)block + MALLOC_GUARD_SIZE + sizeof(*block_info) +
1592 memset(ptr - MALLOC_GUARD_SIZE, MALLOC_GUARD_PATTERN, MALLOC_GUARD_SIZE);
1593 memset(ptr + size, MALLOC_GUARD_PATTERN, MALLOC_GUARD_SIZE);
1596 block_info = (MallocBlockInfo*)(ptr - (MALLOC_GUARD_SIZE +
1631 block_info = (MallocBlockInfo*)(block - (MALLOC_GUARD_SIZE +
1635 char *guards[2] = {block - MALLOC_GUARD_SIZE,
1640 for (j = 0; j < MALLOC_GUARD_SIZE; j++) {
1683 block_info = (MallocBlockInfo*)(block - (MALLOC_GUARD_SIZE +
1749 free(discard_const_p(char, block_info) + sizeof(*block_info) + MALLOC_GUARD_SIZE);