Home
last modified time | relevance | path

Searched refs:mem_ptr (Results 1 – 5 of 5) sorted by relevance

/cts/hostsidetests/securitybulletin/securityPatch/includes/
Dmemutils_track.c57 void* mem_ptr = real_memalign(alignment, size); in memalign() local
60 if(mem_ptr) { in memalign()
61 memset(mem_ptr, INITIAL_VAL, size); in memalign()
67 return mem_ptr; in memalign()
72 return mem_ptr; in memalign()
75 return mem_ptr; in memalign()
77 s_allocation_list[s_allocation_index].mem_ptr = mem_ptr; in memalign()
80 return mem_ptr; in memalign()
87 void* mem_ptr = real_malloc(size); in malloc() local
90 if(mem_ptr) { in malloc()
[all …]
Dmemutils.c100 char* mem_ptr; in memalign() local
136 mem_ptr = (char *) start_ptr + ((num_pages - 1) * page_size) - aligned_size; in memalign()
140 mem_ptr = (char *) start_ptr + page_size; in memalign()
144 s_mem_map[s_mem_map_index].mem_ptr = mem_ptr; in memalign()
148 memset(mem_ptr, INITIAL_VAL, size); in memalign()
149 return mem_ptr; in memalign()
192 if (ptr == s_mem_map[i].mem_ptr) { in realloc()
202 free(s_mem_map[i].mem_ptr); in realloc()
224 if (ptr == s_mem_map[i].mem_ptr) { in free()
228 s_free_list[s_free_write_index].mem_ptr = s_mem_map[i].mem_ptr; in free()
Dmemutils_track.h31 void *mem_ptr; member
Dmemutils.h41 void *mem_ptr; member
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2022-23852/
Dpoc.cpp330 void *mem_ptr; member
340 xml_malloc_list[xml_malloc_list_size].mem_ptr = ptr; in xml_malloc()
349 if (target_ptr == xml_malloc_list[i].mem_ptr && in match_allocation_size()