Home
last modified time | relevance | path

Searched refs:orig_size (Results 1 – 19 of 19) sorted by relevance

/openbsd/src/gnu/llvm/compiler-rt/lib/hwasan/
Dhwasan_malloc_bisect.h18 static u32 malloc_hash(StackTrace *stack, uptr orig_size) { in malloc_hash() argument
21 H.add(orig_size); in malloc_hash()
31 static inline bool malloc_bisect(StackTrace *stack, uptr orig_size) { in malloc_bisect() argument
40 uptr h = (uptr)malloc_hash(stack, orig_size); in malloc_bisect()
44 Printf("[alloc] %u %zu\n", h, orig_size); in malloc_bisect()
Dhwasan_allocator.cpp163 static void *HwasanAllocate(StackTrace *stack, uptr orig_size, uptr alignment, in HwasanAllocate() argument
165 if (orig_size > kMaxAllowedMallocSize) { in HwasanAllocate()
168 orig_size); in HwasanAllocate()
171 ReportAllocationSizeTooBig(orig_size, kMaxAllowedMallocSize, stack); in HwasanAllocate()
180 uptr size = TaggedSize(orig_size); in HwasanAllocate()
202 if (size != orig_size) { in HwasanAllocate()
203 u8 *tail = reinterpret_cast<u8 *>(allocated) + orig_size; in HwasanAllocate()
204 uptr tail_length = size - orig_size; in HwasanAllocate()
217 if (flags()->tag_in_malloc && malloc_bisect(stack, orig_size)) { in HwasanAllocate()
219 uptr tag_size = orig_size ? orig_size : 1; in HwasanAllocate()
[all …]
Dhwasan_report.cpp616 void ReportTailOverwritten(StackTrace *stack, uptr tagged_addr, uptr orig_size, in ReportTailOverwritten() argument
618 uptr tail_size = kShadowAlignment - (orig_size % kShadowAlignment); in ReportTailOverwritten()
624 if (orig_size % kShadowAlignment != 0) { in ReportTailOverwritten()
634 bug_type, untagged_addr, untagged_addr + orig_size, orig_size); in ReportTailOverwritten()
654 u8 *tail = reinterpret_cast<u8*>(untagged_addr + orig_size); in ReportTailOverwritten()
Dhwasan_report.h27 void ReportTailOverwritten(StackTrace *stack, uptr addr, uptr orig_size,
/openbsd/src/gnu/llvm/compiler-rt/lib/builtins/
Demutls.c366 uintptr_t orig_size = array->size; in emutls_get_address_array() local
370 memset(array->data + orig_size, 0, in emutls_get_address_array()
371 (new_size - orig_size) * sizeof(void *)); in emutls_get_address_array()
/openbsd/src/gnu/gcc/gcc/
Dggc-zone.c1006 ggc_alloc_zone_stat (size_t orig_size, struct alloc_zone *zone in ggc_alloc_zone_stat() argument
1014 size_t size = orig_size; in ggc_alloc_zone_stat()
1219 VALGRIND_DISCARD (VALGRIND_MAKE_NOACCESS (result + orig_size, in ggc_alloc_zone_stat()
1220 size - orig_size)); in ggc_alloc_zone_stat()
1226 VALGRIND_DISCARD (VALGRIND_MAKE_WRITABLE (result, orig_size)); in ggc_alloc_zone_stat()
1235 ggc_record_overhead (orig_size, size - orig_size, result PASS_MEM_STAT); in ggc_alloc_zone_stat()
1239 size_t overhead = object_size - orig_size; in ggc_alloc_zone_stat()
1244 if (orig_size <= 32) in ggc_alloc_zone_stat()
1249 if (orig_size <= 64) in ggc_alloc_zone_stat()
1254 if (orig_size <= 128) in ggc_alloc_zone_stat()
Dprotoize.c3914 size_t orig_size; in edit_file() local
3967 orig_size = stat_buf.st_size; in edit_file()
3971 orig_text_base = new_orig_text_base = xmalloc (orig_size + 2); in edit_file()
3972 orig_text_limit = new_orig_text_limit = new_orig_text_base + orig_size; in edit_file()
3976 clean_text_base = new_clean_text_base = xmalloc (orig_size + 2); in edit_file()
3977 clean_text_limit = new_clean_text_limit = new_clean_text_base + orig_size; in edit_file()
3985 repl_size = orig_size + (orig_size >> 2) + 4096; in edit_file()
4014 if (safe_read (input_file, new_orig_text_base, orig_size) != in edit_file()
4015 (int) orig_size) in edit_file()
4028 if (orig_size == 0 || orig_text_limit[-1] != '\n') in edit_file()
/openbsd/src/sys/uvm/
Duvm_fault.h55 vsize_t orig_size; /* IN: original size of interest */ member
Duvm_fault.c654 ufi.orig_size = PAGE_SIZE; /* can't get any smaller than this */ in uvm_fault()
1845 ufi->size = ufi->orig_size; in uvmfault_lookup()
/openbsd/src/gnu/llvm/lldb/source/Utility/
DStringList.cpp157 const size_t orig_size = m_strings.size(); in SplitIntoLines() local
182 return m_strings.size() - orig_size; in SplitIntoLines()
/openbsd/src/gnu/usr.bin/gcc/gcc/
Dprotoize.c4051 size_t orig_size; local
4104 orig_size = stat_buf.st_size;
4108 orig_text_base = new_orig_text_base = (char *) xmalloc (orig_size + 2);
4109 orig_text_limit = new_orig_text_limit = new_orig_text_base + orig_size;
4113 clean_text_base = new_clean_text_base = (char *) xmalloc (orig_size + 2);
4114 clean_text_limit = new_clean_text_limit = new_clean_text_base + orig_size;
4122 repl_size = orig_size + (orig_size >> 2) + 4096;
4151 if (safe_read (input_file, new_orig_text_base, orig_size) !=
4152 (int) orig_size)
4165 if (orig_size == 0 || orig_text_limit[-1] != '\n')
DChangeLog.111446 (edit_file): Cast variable `orig_size' to (int) when comparing
/openbsd/src/gnu/llvm/lldb/source/Breakpoint/
DBreakpointLocationList.cpp82 const size_t orig_size = bp_loc_list.GetSize(); in FindInModule() local
92 return bp_loc_list.GetSize() - orig_size; in FindInModule()
/openbsd/src/gnu/usr.bin/texinfo/makeinfo/
Dnode.c735 int orig_offset, orig_size; in cm_node() local
746 orig_size = in cm_node()
749 if (orig_size < 0) in cm_node()
750 orig_size = input_text_length; in cm_node()
/openbsd/src/gnu/usr.bin/binutils-2.17/bfd/
Delf32-xtensa.c6993 unsigned orig_size = 0; in build_xlate_map() local
7003 orig_size = 6; in build_xlate_map()
7006 orig_size = 3; in build_xlate_map()
7009 orig_size = 2; in build_xlate_map()
7015 r->offset + orig_size - current_entry->orig_address; in build_xlate_map()
7021 current_entry->orig_address = r->offset + orig_size; in build_xlate_map()
7023 current_entry->new_address = r->offset + orig_size - removed; in build_xlate_map()
8163 bfd_size_type orig_size = size; in relax_section() local
8320 BFD_ASSERT (orig_dot <= orig_size); in relax_section()
8326 if (orig_dot != orig_size) in relax_section()
[all …]
/openbsd/src/usr.bin/awk/
Db.c623 size_t orig_size = f->gototab[state].allocated; // 2nd half of new mem is this size in resize_gototab() local
624 memset(p + orig_size, 0, orig_size * sizeof(gtte)); // clean it out in resize_gototab()
/openbsd/src/sys/dev/pci/drm/amd/amdgpu/
Damdgpu_ras_eeprom.c1100 const size_t orig_size = size; in amdgpu_ras_debugfs_table_read() local
1205 return res < 0 ? res : orig_size - size; in amdgpu_ras_debugfs_table_read()
/openbsd/src/gnu/llvm/clang/lib/Analysis/
DPathDiagnostic.cpp215 const unsigned orig_size = orig->full_size(); in HandlePathDiagnostic() local
217 if (orig_size <= new_size) in HandlePathDiagnostic()
/openbsd/src/gnu/usr.bin/perl/
Dpp_sys.c1930 STRLEN orig_size; variable
2070 orig_size = SvCUR(bufsv);
2077 if (offset > 0 && offset > (SSize_t)orig_size) { /* Zero any newly allocated space */
2078 Zero(buffer+orig_size, offset-orig_size, char);