Home
last modified time | relevance | path

Searched refs:scncnt (Results 1 – 3 of 3) sorted by relevance

/external/elfutils/libelf/
Delf_begin.c264 size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize); in file_read_elf() local
265 if (scncnt == (size_t) -1l) in file_read_elf()
272 if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf32_Shdr))) in file_read_elf()
275 else if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf64_Shdr))) in file_read_elf()
280 const size_t scnmax = (scncnt ?: (cmd == ELF_C_RDWR || cmd == ELF_C_RDWR_MMAP) in file_read_elf()
288 assert ((unsigned int) scncnt == scncnt); in file_read_elf()
291 elf->state.elf32.scns.cnt = scncnt; in file_read_elf()
350 < scncnt * sizeof (Elf32_Shdr))) in file_read_elf()
360 for (size_t cnt = 0; cnt < scncnt; ++cnt) in file_read_elf()
379 && elf->state.elf32.shdr[cnt].sh_link < scncnt) in file_read_elf()
[all …]
DChangeLog475 (file_read_elf): Make sure scncnt is small enough to allocate both
/external/elfutils/src/
Dldgeneric.c1090 size_t scncnt; in add_relocatable_file() local
1110 if (unlikely (elf_getshdrnum (fileinfo->elf, &scncnt) < 0)) in add_relocatable_file()
1116 obstack_calloc (&ld_state.smem, scncnt * sizeof (struct scninfo)); in add_relocatable_file()
1123 for (cnt = 0; cnt < scncnt; ++cnt) in add_relocatable_file()
1317 if (grpdata[inner] >= scncnt) in add_relocatable_file()