[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_versi
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string |
Date: |
Sat, 18 Nov 2017 21:17:26 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22443
--- Comment #10 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=160b1a618ad94988410dc81fce9189fcda5b7ff4
commit 160b1a618ad94988410dc81fce9189fcda5b7ff4
Author: Alan Modra <address@hidden>
Date: Sat Nov 18 23:18:22 2017 +1030
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/22443] New: Global buffer overflow in _bfd_elf_get_symbol_version_string, mgcho.minic at gmail dot com, 2017/11/15
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, nickc at redhat dot com, 2017/11/16
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, amodra at gmail dot com, 2017/11/17
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, nickc at redhat dot com, 2017/11/17
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, nickc at redhat dot com, 2017/11/17
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, mgcho.minic at gmail dot com, 2017/11/17
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, mgcho.minic at gmail dot com, 2017/11/17
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, nickc at redhat dot com, 2017/11/17
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, nickc at redhat dot com, 2017/11/17
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, mgcho.minic at gmail dot com, 2017/11/17
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string,
cvs-commit at gcc dot gnu.org <=
- [Bug binutils/22443] Global buffer overflow in _bfd_elf_get_symbol_version_string, amodra at gmail dot com, 2017/11/23