Searched refs:scncnt (Results 1 – 2 of 2) sorted by relevance
296 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf() local297 if (scncnt == (size_t) -1l) in file_read_elf()304 if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf32_Shdr))) in file_read_elf()310 else if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf64_Shdr))) in file_read_elf()318 const size_t scnmax = (scncnt ?: (cmd == ELF_C_RDWR || cmd == ELF_C_RDWR_MMAP) in file_read_elf()326 assert ((unsigned int) scncnt == scncnt); in file_read_elf()329 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()386 if (unlikely (scncnt > 0 && e_shoff >= maxsize) in file_read_elf()388 < scncnt * sizeof (Elf32_Shdr))) in file_read_elf()398 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()[all …]
362 * elf_begin.c (file_read_elf): Skip sanity checking e_shoff if scncnt995 (file_read_elf): Make sure scncnt is small enough to allocate both