Searched refs:phdr_size (Results 1 – 2 of 2) sorted by relevance
79 size_t phdr_size; in elf_is_ehdr_sane() local85 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_is_ehdr_sane()88 if (ehdr->e_phoff + phdr_size < ehdr->e_phoff) { in elf_is_ehdr_sane()91 } else if (ehdr->e_phoff + phdr_size > buf_len) { in elf_is_ehdr_sane()254 size_t phdr_size, i; in elf_read_phdrs() local261 phdr_size = sizeof(struct elf_phdr) * ehdr->e_phnum; in elf_read_phdrs()263 elf_info->proghdrs = kzalloc(phdr_size, GFP_KERNEL); in elf_read_phdrs()
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()