Searched refs:scncnt (Results 1 – 2 of 2) sorted by relevance
298 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf() local299 if (scncnt == (size_t) -1l) in file_read_elf()306 if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf32_Shdr))) in file_read_elf()312 else if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf64_Shdr))) in file_read_elf()320 const size_t scnmax = (scncnt ?: (cmd == ELF_C_RDWR || cmd == ELF_C_RDWR_MMAP) in file_read_elf()328 assert ((unsigned int) scncnt == scncnt); in file_read_elf()331 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()388 if (unlikely (scncnt > 0 && e_shoff >= maxsize) in file_read_elf()390 < scncnt * sizeof (Elf32_Shdr))) in file_read_elf()398 if (scncnt > 0) in file_read_elf()[all …]
99 alignment check. Only set shdr state when scncnt is larger than zero.496 * elf_begin.c (file_read_elf): Skip sanity checking e_shoff if scncnt1129 (file_read_elf): Make sure scncnt is small enough to allocate both