Lines Matching defs:orig_size
125 static void *HwasanAllocate(StackTrace *stack, uptr orig_size, uptr alignment,
127 if (orig_size > kMaxAllowedMallocSize) {
130 orig_size);
133 ReportAllocationSizeTooBig(orig_size, kMaxAllowedMallocSize, stack);
137 uptr size = TaggedSize(orig_size);
155 meta->set_requested_size(orig_size);
164 if (size != orig_size) {
165 u8 *tail = reinterpret_cast<u8 *>(allocated) + orig_size;
166 uptr tail_length = size - orig_size;
179 if (flags()->tag_in_malloc && malloc_bisect(stack, orig_size)) {
181 uptr tag_size = orig_size ? orig_size : 1;
242 uptr orig_size = meta->get_requested_size();
247 uptr tagged_size = TaggedSize(orig_size);
248 if (flags()->free_checks_tail_magic && orig_size &&
249 tagged_size != orig_size) {
250 uptr tail_size = tagged_size - orig_size - 1;
253 reinterpret_cast<uptr>(aligned_ptr) + orig_size);
260 orig_size, tail_magic);
270 Min(TaggedSize(orig_size), (uptr)flags()->max_free_fill_size);
290 TagMemoryAligned(reinterpret_cast<uptr>(aligned_ptr), TaggedSize(orig_size),
297 free_context_id, static_cast<u32>(orig_size)});