Home
last modified time | relevance | path

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

/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp134 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/
Dmalloc_debug.cpp70 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 …]
DFreeTrackData.cpp46 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()
DFreeTrackData.h59 void LogFreeError(DebugData& debug, const Header* header, const uint8_t* pointer);
60 void VerifyAndFree(DebugData& debug, const Header* header, const void* pointer);
DGuardData.cpp48 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()
DDebugData.h60 Header* GetHeader(const void* pointer) { in GetHeader() argument
61 uintptr_t value = reinterpret_cast<uintptr_t>(pointer); in GetHeader()
DGuardData.h51 void LogFailure(const Header* header, const void* pointer, const void* data);
DREADME.md152 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/
Dmalloc_test.cpp378 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()
Dthread_local_test.cpp175 typedef unsigned int gcc_pointer __attribute__((mode(pointer)));
/bionic/linker/tests/
Dlinker_block_allocator_test.cpp30 void* pointer; member
/bionic/linker/
Dlinker_allocator.h69 typedef T* pointer; typedef
/bionic/libc/bionic/
Dmalloc_common.cpp454 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/
Dwireless.h327 void __user * pointer; member
/bionic/libc/
DAndroid.mk630 -Werror=pointer-to-int-cast \
631 -Werror=int-to-pointer-cast \
DAndroid.bp82 "-Werror=pointer-to-int-cast",
83 "-Werror=int-to-pointer-cast",
95 "-Werror=pointer-to-int-cast",
96 "-Werror=int-to-pointer-cast",