Fix illegal memory access parsing a corrupt ELF file.
authorNick Clifton <nickc@redhat.com>
Thu, 14 Mar 2019 14:45:32 +0000 (14:45 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 14 Mar 2019 14:45:32 +0000 (14:45 +0000)
commitbe22c732bf873e0c7e8a08564c97cafdfcf153bb
tree779aef5992f5920439e815d320be7f2038ace442
parent3b336828de914a39741339b5341b88aa003d7225
Fix illegal memory access parsing a corrupt ELF file.

PR 24332
* elflink.c (elf_link_add_object_symbols): Add new local variable
extversym_end.  Initialise it to point to the end of the version
symbol table, if present.  Check it when initialising and updating
the ever pointer.
bfd/ChangeLog
bfd/elflink.c