Searched refs:phdr_size (Results 1 – 6 of 6) sorted by relevance
116 size_t phdr_size = (elf->class == ELFCLASS32 in __elf_getphdrnum_chk_rdlock() local118 if (unlikely (*dst > SIZE_MAX / phdr_size)) in __elf_getphdrnum_chk_rdlock()125 if (unlikely (elf->maximum_size - off < *dst * phdr_size)) in __elf_getphdrnum_chk_rdlock()126 *dst = (elf->maximum_size - off) / phdr_size; in __elf_getphdrnum_chk_rdlock()
630 size_t phdr_size = sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum; in __elfw2() local632 phdr_size, ehdr->e_phoff) in __elfw2()633 != phdr_size)) in __elfw2()
201 size_t phdr_size; in check_core_file() local216 phdr_size = sizeof(*phdr) * ehdr->e_phnum; in check_core_file()219 FAIL_IF(ehdr->e_phoff + phdr_size < ehdr->e_phoff); in check_core_file()220 FAIL_IF(ehdr->e_phoff + phdr_size > core_size); in check_core_file()224 (void *) phdr < p + ehdr->e_phoff + phdr_size; in check_core_file()229 FAIL_IF((void *) phdr >= p + ehdr->e_phoff + phdr_size); in check_core_file()
201 size_t phdr_size = class32 ? sizeof (Elf32_Phdr) : sizeof (Elf64_Phdr); in elf_from_remote_memory() local202 if (unlikely (phnum > SIZE_MAX / phdr_size)) in elf_from_remote_memory()207 const size_t phdrsp_bytes = phnum * phdr_size; in elf_from_remote_memory()
458 size_t phdr_size = class32 ? sizeof (Elf32_Phdr) : sizeof (Elf64_Phdr); in dwfl_segment_report_module() local459 if (unlikely (phnum > SIZE_MAX / phdr_size)) in dwfl_segment_report_module()461 const size_t phdrsp_bytes = phnum * phdr_size; in dwfl_segment_report_module()
396 size_t phdr_size = class32 ? sizeof (Elf32_Phdr) : sizeof (Elf64_Phdr); in find_prelink_address_sync() local397 if (unlikely (phnum > SIZE_MAX / phdr_size)) in find_prelink_address_sync()399 const size_t phdrs_bytes = phnum * phdr_size; in find_prelink_address_sync()