Lines Matching refs:filesize

33 iself(const char *p, size_t filesize)  in iself()  argument
37 if (filesize < sizeof(Elf_Ehdr)) { in iself()
57 if (eh->e_shoff > filesize) { in iself()
66 if (eh->e_shnum > (filesize - eh->e_shoff) / eh->e_shentsize) { in iself()
79 elf_getshstab(const char *p, size_t filesize, const char **shstab, in elf_getshstab() argument
87 if (shoff > (filesize - sizeof(*sh))) { in elf_getshstab()
97 if (sh->sh_offset > filesize) { in elf_getshstab()
101 if (sh->sh_size > filesize - sh->sh_offset) { in elf_getshstab()
114 elf_getsymtab(const char *p, size_t filesize, const char *shstab, in elf_getsymtab() argument
128 if (shoff > (filesize - sizeof(*sh))) in elf_getsymtab()
138 if (sh->sh_offset > filesize) in elf_getsymtab()
141 if (sh->sh_size > (filesize - sh->sh_offset)) in elf_getsymtab()
162 if (shoff > (filesize - sizeof(*sh))) in elf_getsymtab()
166 if ((sh->sh_offset + sh->sh_size) > filesize) in elf_getsymtab()
178 elf_getsection(char *p, size_t filesize, const char *sname, const char *shstab, in elf_getsection() argument
194 if (shoff > (filesize - sizeof(*sh))) in elf_getsection()
201 if (sh->sh_offset > filesize) in elf_getsection()
204 if (sh->sh_size > (filesize - sh->sh_offset)) in elf_getsection()
211 elf_reloc_apply(p, filesize, shstab, shstabsz, sidx, in elf_getsection()
263 elf_reloc_apply(const char *p, size_t filesize, const char *shstab, in elf_reloc_apply() argument
278 symtabidx = elf_getsymtab(p, filesize, shstab, shstabsz, &symtab, in elf_reloc_apply()
288 if (shoff > (filesize - sizeof(*sh))) in elf_reloc_apply()
298 if (sh->sh_offset > filesize) in elf_reloc_apply()
301 if (sh->sh_size > (filesize - sh->sh_offset)) in elf_reloc_apply()
313 if (roff >= filesize) in elf_reloc_apply()
333 if (roff >= filesize) in elf_reloc_apply()