| /openbsd/src/gnu/llvm/compiler-rt/lib/hwasan/ |
| D | hwasan_malloc_bisect.h | 18 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()
|
| D | hwasan_allocator.cpp | 163 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 …]
|
| D | hwasan_report.cpp | 616 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()
|
| D | hwasan_report.h | 27 void ReportTailOverwritten(StackTrace *stack, uptr addr, uptr orig_size,
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/builtins/ |
| D | emutls.c | 366 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/ |
| D | ggc-zone.c | 1006 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()
|
| D | protoize.c | 3914 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/ |
| D | uvm_fault.h | 55 vsize_t orig_size; /* IN: original size of interest */ member
|
| D | uvm_fault.c | 654 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/ |
| D | StringList.cpp | 157 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/ |
| D | protoize.c | 4051 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')
|
| D | ChangeLog.1 | 11446 (edit_file): Cast variable `orig_size' to (int) when comparing
|
| /openbsd/src/gnu/llvm/lldb/source/Breakpoint/ |
| D | BreakpointLocationList.cpp | 82 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/ |
| D | node.c | 735 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/ |
| D | elf32-xtensa.c | 6993 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/ |
| D | b.c | 623 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/ |
| D | amdgpu_ras_eeprom.c | 1100 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/ |
| D | PathDiagnostic.cpp | 215 const unsigned orig_size = orig->full_size(); in HandlePathDiagnostic() local 217 if (orig_size <= new_size) in HandlePathDiagnostic()
|
| /openbsd/src/gnu/usr.bin/perl/ |
| D | pp_sys.c | 1930 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);
|