Home
last modified time | relevance | path

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

/system/bt/osi/src/
Dallocation_tracker.c61 static size_t canary_size; variable
69 canary_size = strlen(canary); in allocation_tracker_init()
124 return_ptr += canary_size; in allocation_tracker_notify_alloc()
144 memcpy(return_ptr - canary_size, canary, canary_size); in allocation_tracker_notify_alloc()
145 memcpy(return_ptr + requested_size, canary, canary_size); in allocation_tracker_notify_alloc()
162 UNUSED_ATTR const char *beginning_canary = ((char *)ptr) - canary_size; in allocation_tracker_notify_free()
165 for (size_t i = 0; i < canary_size; i++) { in allocation_tracker_notify_free()
177 return ((char *)ptr) - canary_size; in allocation_tracker_notify_free()
181 return (!allocations) ? size : size + (2 * canary_size); in allocation_tracker_resize_for_canary()