Searched refs:scncnt (Results 1 – 2 of 2) sorted by relevance
286 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf() local287 if (scncnt == (size_t) -1l) in file_read_elf()294 if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf32_Shdr))) in file_read_elf()300 else if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf64_Shdr))) in file_read_elf()308 const size_t scnmax = (scncnt ?: (cmd == ELF_C_RDWR || cmd == ELF_C_RDWR_MMAP) in file_read_elf()316 assert ((unsigned int) scncnt == scncnt); in file_read_elf()319 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()376 if (unlikely (scncnt > 0 && e_shoff >= maxsize) in file_read_elf()378 < scncnt * sizeof (Elf32_Shdr))) in file_read_elf()388 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()[all …]
201 * elf_begin.c (file_read_elf): Skip sanity checking e_shoff if scncnt834 (file_read_elf): Make sure scncnt is small enough to allocate both