/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 134 uint8_t* pointer = reinterpret_cast<uint8_t*>(debug_malloc(alloc_size)); in VerifyAllocCalls() local 135 ASSERT_TRUE(pointer != nullptr); in VerifyAllocCalls() 136 for (size_t i = 0; i < debug_malloc_usable_size(pointer); i++) { in VerifyAllocCalls() 137 ASSERT_EQ(0xeb, pointer[i]); in VerifyAllocCalls() 139 debug_free(pointer); in VerifyAllocCalls() 142 pointer = reinterpret_cast<uint8_t*>(debug_calloc(1, alloc_size)); in VerifyAllocCalls() 143 ASSERT_TRUE(pointer != nullptr); in VerifyAllocCalls() 144 for (size_t i = 0; i < debug_malloc_usable_size(pointer); i++) { in VerifyAllocCalls() 145 ASSERT_EQ(0, pointer[i]) << "Failed at byte " << i; in VerifyAllocCalls() 147 debug_free(pointer); in VerifyAllocCalls() [all …]
|
/bionic/libc/malloc_debug/ |
D | malloc_debug.cpp | 70 ssize_t debug_malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count); 72 size_t debug_malloc_usable_size(void* pointer); 74 void debug_free(void* pointer); 76 void* debug_realloc(void* pointer, size_t bytes); 116 static void LogTagError(const Header* header, const void* pointer, const char* name) { in LogTagError() argument 121 error_log("+++ ALLOCATION %p USED AFTER FREE (%s)", pointer, name); in LogTagError() 126 error_log("+++ ALLOCATION %p HAS INVALID TAG %" PRIx32 " (%s)", pointer, header->tag, name); in LogTagError() 267 size_t debug_malloc_usable_size(void* pointer) { in debug_malloc_usable_size() argument 268 if (DebugCallsDisabled() || !g_debug->need_header() || pointer == nullptr) { in debug_malloc_usable_size() 269 return g_dispatch->malloc_usable_size(pointer); in debug_malloc_usable_size() [all …]
|
D | FreeTrackData.cpp | 46 const uint8_t* pointer) { in LogFreeError() argument 50 error_log("+++ ALLOCATION %p USED AFTER FREE", pointer); in LogFreeError() 53 if (pointer[i] != fill_free_value) { in LogFreeError() 54 error_log(" allocation[%zu] = 0x%02x (expected 0x%02x)", i, pointer[i], fill_free_value); in LogFreeError() 67 const void* pointer) { in VerifyAndFree() argument 72 error_log("+++ ALLOCATION %p HAS CORRUPTED HEADER TAG 0x%x AFTER FREE", pointer, header->tag); in VerifyAndFree() 75 const uint8_t* memory = reinterpret_cast<const uint8_t*>(pointer); in VerifyAndFree() 81 LogFreeError(debug, header, reinterpret_cast<const uint8_t*>(pointer)); in VerifyAndFree()
|
D | FreeTrackData.h | 59 void LogFreeError(DebugData& debug, const Header* header, const uint8_t* pointer); 60 void VerifyAndFree(DebugData& debug, const Header* header, const void* pointer);
|
D | GuardData.cpp | 48 void GuardData::LogFailure(const Header* header, const void* pointer, const void* data) { in LogFailure() argument 52 error_log("+++ ALLOCATION %p SIZE %zu HAS A CORRUPTED %s GUARD", pointer, in LogFailure() 57 int pointer_idx = reinterpret_cast<uintptr_t>(data) - reinterpret_cast<uintptr_t>(pointer); in LogFailure()
|
D | DebugData.h | 60 Header* GetHeader(const void* pointer) { in GetHeader() argument 61 uintptr_t value = reinterpret_cast<uintptr_t>(pointer); in GetHeader()
|
D | GuardData.h | 51 void LogFailure(const Header* header, const void* pointer, const void* data);
|
D | README.md | 152 When a pointer is freed, do not free the memory right away, but add it to 251 This indicates that code is attempting to free an already freed pointer. The 253 <i>free</i> with the bad pointer. 262 with an already freed pointer. 275 a pointer that is either not allocated memory, or that the memory of 276 the pointer has been corrupted. 279 function that was called with the bad pointer.
|
/bionic/tests/ |
D | malloc_test.cpp | 378 void* pointer = malloc(size); in TEST() local 379 ASSERT_TRUE(pointer != nullptr); in TEST() 380 memset(pointer, 0xeb, malloc_usable_size(pointer)); in TEST() 381 free(pointer); in TEST() 386 ASSERT_TRUE(pointer != nullptr); in TEST()
|
D | thread_local_test.cpp | 175 typedef unsigned int gcc_pointer __attribute__((mode(pointer)));
|
/bionic/linker/tests/ |
D | linker_block_allocator_test.cpp | 30 void* pointer; member
|
/bionic/linker/ |
D | linker_allocator.h | 69 typedef T* pointer; typedef
|
/bionic/libc/bionic/ |
D | malloc_common.cpp | 454 extern "C" ssize_t malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count) { in malloc_backtrace() argument 458 return g_debug_malloc_backtrace_func(pointer, frames, frame_count); in malloc_backtrace()
|
/bionic/libc/kernel/uapi/linux/ |
D | wireless.h | 327 void __user * pointer; member
|
/bionic/libc/ |
D | Android.mk | 630 -Werror=pointer-to-int-cast \ 631 -Werror=int-to-pointer-cast \
|
D | Android.bp | 82 "-Werror=pointer-to-int-cast", 83 "-Werror=int-to-pointer-cast", 95 "-Werror=pointer-to-int-cast", 96 "-Werror=int-to-pointer-cast",
|