Searched refs:new_ptr (Results 1 – 2 of 2) sorted by relevance
150 void* new_ptr = gwp_asan_malloc(bytes); in gwp_asan_realloc() local151 if (new_ptr) memcpy(new_ptr, old_mem, (bytes < old_size) ? bytes : old_size); in gwp_asan_realloc()153 return new_ptr; in gwp_asan_realloc()
197 void* new_ptr; in LimitRealloc() local209 new_ptr = dispatch_table->realloc(old_mem, bytes); in LimitRealloc()211 new_ptr = Malloc(realloc)(old_mem, bytes); in LimitRealloc()214 if (__predict_false(new_ptr == nullptr)) { in LimitRealloc()220 size_t new_usable_size = LimitUsableSize(new_ptr); in LimitRealloc()227 return new_ptr; in LimitRealloc()