Home
last modified time | relevance | path

Searched refs:canary_size (Results 1 – 1 of 1) sorted by relevance

/system/bt/osi/src/
Dallocation_tracker.cc40 static const size_t canary_size = 8; variable
41 static char canary[canary_size];
57 for (size_t i = 0; i < canary_size; i++) canary[i] = (char)osi_rand(); in allocation_tracker_init()
110 return_ptr = ((char*)ptr) + canary_size; in allocation_tracker_notify_alloc()
129 memcpy(return_ptr - canary_size, canary, canary_size); in allocation_tracker_notify_alloc()
130 memcpy(return_ptr + requested_size, canary, canary_size); in allocation_tracker_notify_alloc()
155 UNUSED_ATTR const char* beginning_canary = ((char*)ptr) - canary_size; in allocation_tracker_notify_free()
158 for (size_t i = 0; i < canary_size; i++) { in allocation_tracker_notify_free()
169 return ((char*)ptr) - canary_size; in allocation_tracker_notify_free()
173 return (!enabled) ? size : size + (2 * canary_size); in allocation_tracker_resize_for_canary()