Home
last modified time | relevance | path

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

/system/keymaster/include/keymaster/
Dserializable.h69 template <typename T> inline uintptr_t __pval(const T* p) { in __pval() function
124 __pval(buf) + count * sizeof(uint32_t) < __pval(buf)) in append_uint32_array_to_buf()
183 uintptr_t array_end = __pval(*buf_ptr) + *count * sizeof(uint32_t); in copy_uint32_array_from_buf()
184 if (*count >= UINT32_MAX / sizeof(uint32_t) || array_end < __pval(*buf_ptr) || in copy_uint32_array_from_buf()
185 array_end > __pval(end)) in copy_uint32_array_from_buf()
/system/keymaster/android_keymaster/
Dserializable.cpp30 bool overflow_occurred = __builtin_add_overflow(__pval(buf), len, &buf_next); in buffer_bound_check()
31 return (!overflow_occurred) && (buf_next <= __pval(end)); in buffer_bound_check()
102 if (__pval(data) + data_len < __pval(data)) // Pointer wrap check in Reinitialize()