Home
last modified time | relevance | path

Searched refs:maximum_size (Results 1 – 18 of 18) sorted by relevance

/external/elfutils/src/libelf/
Delf_readall.c91 if (elf->maximum_size == ~((size_t) 0))
101 elf->maximum_size = (size_t) st.st_size;
110 mem = (char *) malloc (elf->maximum_size);
115 elf->maximum_size,
117 != elf->maximum_size))
Delf_update.c61 && (elf->maximum_size == ~((size_t) 0) in write_file()
62 || (size_t) size > elf->maximum_size) in write_file()
99 && elf->maximum_size != ~((size_t) 0) in write_file()
100 && (size_t) size < elf->maximum_size in write_file()
120 elf->maximum_size = size; in write_file()
Delf_getphdrnum.c111 if (unlikely (off >= elf->maximum_size))
129 if (unlikely (elf->maximum_size - off < *dst * phdr_size))
130 *dst = (elf->maximum_size - off) / phdr_size;
Delf32_getphdr.c89 || ehdr->e_phoff > elf->maximum_size
90 || elf->maximum_size - ehdr->e_phoff < size)
100 if (unlikely (ehdr->e_phoff >= elf->maximum_size)
101 || unlikely (elf->maximum_size - ehdr->e_phoff < size))
Delf_getarsym.c128 if (SARMAG + sizeof (struct ar_hdr) > elf->maximum_size)
185 if (index_size > elf->maximum_size
186 || elf->maximum_size - index_size < SARMAG + sizeof (struct ar_hdr)
Delf_getdata_rawchunk.c60 if (unlikely (offset < 0 || (uint64_t) offset > elf->maximum_size
61 || elf->maximum_size - (uint64_t) offset < size))
Delf_getshdrstrndx.c120 if (unlikely (elf->maximum_size - offset
181 if (unlikely (elf->maximum_size - offset
Delf_rawfile.c63 *ptr = elf->maximum_size;
Delf_clone.c57 elf->maximum_size, elf->cmd, elf->parent, elf->kind, in elf_clone()
Delf_begin.c676 if ((size_t) offset > elf->maximum_size in read_long_names()
677 || elf->maximum_size - offset < sizeof (struct ar_hdr)) in read_long_names()
712 if (len > elf->maximum_size - offset - sizeof (struct ar_hdr)) in read_long_names()
781 > elf->start_offset + elf->maximum_size
782 || (elf->start_offset + elf->maximum_size
929 maxsize = elf->maximum_size - elf->state.ar.offset - sizeof (struct ar_hdr);
Delf32_getshdr.c83 if (unlikely (ehdr->e_shoff >= elf->maximum_size) in ElfW2()
84 || unlikely (elf->maximum_size - ehdr->e_shoff < size)) in ElfW2()
Dcommon.h84 result->maximum_size = maxsize; in allocate_elf()
Delf_getdata.c248 if (unlikely (offset > elf->maximum_size in __libelf_set_rawdata_wrlock()
249 || elf->maximum_size - offset < size)) in __libelf_set_rawdata_wrlock()
Delf_end.c220 munmap (elf->map_address, elf->maximum_size);
Delf32_updatefile.c239 + elf->maximum_size)); in __elfw2()
257 + elf->maximum_size)) in __elfw2()
DlibelfP.h288 size_t maximum_size; member
/external/elfutils/src/libdwfl/
Dcore-file.c68 || unlikely (offset >= (loff_t) parent->maximum_size)) in elf_begin_rand()
77 if (unlikely (parent->maximum_size - offset < sizeof h)) in elf_begin_rand()
95 || unlikely ((loff_t) parent->maximum_size - offset < size)) in elf_begin_rand()
99 if (unlikely ((loff_t) parent->maximum_size - offset < size)) in elf_begin_rand()
107 && unlikely (size == (loff_t) parent->maximum_size)) in elf_begin_rand()
303 (void) more (elf->maximum_size - start); in dwfl_elf_phdr_memory_callback()
307 if (unlikely (end > elf->maximum_size)) in dwfl_elf_phdr_memory_callback()
308 end = elf->maximum_size; in dwfl_elf_phdr_memory_callback()
Dopen.c59 const size_t mapped_size = (*elf)->maximum_size; in decompress()
139 elf->maximum_size); in __libdw_open_file()
145 elf->state.ar.elf_ar_hdr.ar_size = elf->maximum_size - offset; in __libdw_open_file()