Home
last modified time | relevance | path

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

/freebsd/sys/contrib/libsodium/src/libsodium/sodium/
H A Dutils.c496 unsigned char *canary_ptr; in _unprotected_ptr_from_user_ptr() local
499 canary_ptr = ((unsigned char *) ptr) - sizeof canary; in _unprotected_ptr_from_user_ptr()
501 unprotected_ptr_u = ((uintptr_t) canary_ptr & (uintptr_t) ~page_mask); in _unprotected_ptr_from_user_ptr()
522 unsigned char *canary_ptr; in _sodium_malloc() local
548 canary_ptr = in _sodium_malloc()
550 user_ptr = canary_ptr + sizeof canary; in _sodium_malloc()
551 memcpy(canary_ptr, canary, sizeof canary); in _sodium_malloc()
594 unsigned char *canary_ptr; in sodium_free() local
602 canary_ptr = ((unsigned char *) ptr) - sizeof canary; in sodium_free()
608 if (sodium_memcmp(canary_ptr, canary, sizeof canary) != 0) { in sodium_free()