diff options
author | Alan Modra <amodra@gmail.com> | 2017-11-18 23:18:22 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-11-19 07:41:17 +1030 |
commit | 160b1a618ad94988410dc81fce9189fcda5b7ff4 (patch) | |
tree | dafdd60da43d99637eb1249c8cc356cde636dfc8 /gdb/arm-tdep.h | |
parent | c977a5f0280f29136631cf043d6ce6cfdbc47b99 (diff) | |
download | gdb-160b1a618ad94988410dc81fce9189fcda5b7ff4.zip gdb-160b1a618ad94988410dc81fce9189fcda5b7ff4.tar.gz gdb-160b1a618ad94988410dc81fce9189fcda5b7ff4.tar.bz2 |
PR22443, Global buffer overflow in _bfd_elf_get_symbol_version_string
Symbols like *ABS* defined in bfd/section.c:global_syms are not
elf_symbol_type. They can appear on relocs and perhaps other places
in an ELF bfd, so a number of places in nm.c and objdump.c are wrong
to cast an asymbol based on the bfd being ELF. I think we lose
nothing by excluding all section symbols, not just the global_syms.
PR 22443
* nm.c (sort_symbols_by_size): Don't attempt to access
section symbol internal_elf_sym.
(print_symbol): Likewise. Don't call bfd_get_symbol_version_string
for section symbols.
* objdump.c (compare_symbols): Don't attempt to access
section symbol internal_elf_sym.
(objdump_print_symname): Don't call bfd_get_symbol_version_string
for section symbols.
Diffstat (limited to 'gdb/arm-tdep.h')
0 files changed, 0 insertions, 0 deletions