diff options
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 98332cd..06fcea3 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -1139,7 +1139,8 @@ group_signature (asection *group) Elf_Internal_Shdr *symhdr = elf_elfsections (abfd) [ghdr->sh_link]; if (symhdr->sh_type == SHT_SYMTAB - && ghdr->sh_info < symhdr->sh_size / bed->s->sizeof_sym) + && ghdr->sh_info > 0 + && ghdr->sh_info < (symhdr->sh_size / bed->s->sizeof_sym)) return isympp[ghdr->sh_info - 1]; } return NULL; |