Searched refs:maximum_size (Results 1 – 18 of 18) sorted by relevance
91 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))
61 && (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()
111 if (unlikely (off >= elf->maximum_size))129 if (unlikely (elf->maximum_size - off < *dst * phdr_size))130 *dst = (elf->maximum_size - off) / phdr_size;
89 || ehdr->e_phoff > elf->maximum_size90 || 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))
128 if (SARMAG + sizeof (struct ar_hdr) > elf->maximum_size)185 if (index_size > elf->maximum_size186 || elf->maximum_size - index_size < SARMAG + sizeof (struct ar_hdr)
60 if (unlikely (offset < 0 || (uint64_t) offset > elf->maximum_size61 || elf->maximum_size - (uint64_t) offset < size))
120 if (unlikely (elf->maximum_size - offset181 if (unlikely (elf->maximum_size - offset
63 *ptr = elf->maximum_size;
57 elf->maximum_size, elf->cmd, elf->parent, elf->kind, in elf_clone()
676 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_size782 || (elf->start_offset + elf->maximum_size929 maxsize = elf->maximum_size - elf->state.ar.offset - sizeof (struct ar_hdr);
83 if (unlikely (ehdr->e_shoff >= elf->maximum_size) in ElfW2()84 || unlikely (elf->maximum_size - ehdr->e_shoff < size)) in ElfW2()
84 result->maximum_size = maxsize; in allocate_elf()
248 if (unlikely (offset > elf->maximum_size in __libelf_set_rawdata_wrlock()249 || elf->maximum_size - offset < size)) in __libelf_set_rawdata_wrlock()
220 munmap (elf->map_address, elf->maximum_size);
239 + elf->maximum_size)); in __elfw2()257 + elf->maximum_size)) in __elfw2()
288 size_t maximum_size; member
68 || 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()
59 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()