/bionic/libc/malloc_debug/ |
GuardData.cpp | 44 cmp_mem_.resize(num_bytes); 45 memset(cmp_mem_.data(), init_value, cmp_mem_.size()); 56 const uint8_t* expected = cmp_mem_.data(); 59 for (size_t i = 0; i < cmp_mem_.size(); i++, pointer_idx++) { 76 cmp_mem_.resize(config.front_guard_bytes); 77 memset(cmp_mem_.data(), config.front_guard_value, cmp_mem_.size());
|
GuardData.h | 49 bool Valid(void* data) { return memcmp(data, cmp_mem_.data(), cmp_mem_.size()) == 0; } 54 std::vector<uint8_t> cmp_mem_; member in class:GuardData
|
FreeTrackData.cpp | 41 cmp_mem_.resize(4096); 42 memset(cmp_mem_.data(), config.fill_free_value, cmp_mem_.size()); 79 size_t bytes_to_cmp = (bytes < cmp_mem_.size()) ? bytes : cmp_mem_.size(); 80 if (memcmp(memory, cmp_mem_.data(), bytes_to_cmp) != 0) {
|
FreeTrackData.h | 64 std::vector<uint8_t> cmp_mem_; member in class:FreeTrackData
|