Searched refs:cmp_mem_ (Results 1 – 4 of 4) sorted by relevance
/bionic/libc/malloc_debug/ |
D | GuardData.cpp | 45 cmp_mem_.resize(num_bytes); in GuardData() 46 memset(cmp_mem_.data(), init_value, cmp_mem_.size()); in GuardData() 55 const uint8_t* expected = cmp_mem_.data(); in LogFailure() 58 for (size_t i = 0; i < cmp_mem_.size(); i++, pointer_idx++) { in LogFailure() 75 cmp_mem_.resize(config.front_guard_bytes()); in FrontGuardData() 76 memset(cmp_mem_.data(), config.front_guard_value(), cmp_mem_.size()); in FrontGuardData()
|
D | FreeTrackData.cpp | 41 cmp_mem_.resize(4096); in FreeTrackData() 42 memset(cmp_mem_.data(), config.fill_free_value(), cmp_mem_.size()); in FreeTrackData() 75 size_t bytes_to_cmp = (bytes < cmp_mem_.size()) ? bytes : cmp_mem_.size(); in VerifyAndFree() 76 if (memcmp(memory, cmp_mem_.data(), bytes_to_cmp) != 0) { in VerifyAndFree()
|
D | GuardData.h | 51 bool Valid(void* data) { return memcmp(data, cmp_mem_.data(), cmp_mem_.size()) == 0; } in Valid() 56 std::vector<uint8_t> cmp_mem_;
|
D | FreeTrackData.h | 66 std::vector<uint8_t> cmp_mem_; variable
|