diff options
author | Nick Clifton <nickc@redhat.com> | 2023-09-28 12:37:59 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-09-28 12:37:59 +0100 |
commit | 6136093c0d009e3118abb08344e156d91144a046 (patch) | |
tree | 507244e1ffcb13fcb1b44c3a3bdeac2fa73347d6 /gdb/bt-utils.c | |
parent | 2654f77d1424f6172d3026c524e96e14b5752ba1 (diff) | |
download | gdb-6136093c0d009e3118abb08344e156d91144a046.zip gdb-6136093c0d009e3118abb08344e156d91144a046.tar.gz gdb-6136093c0d009e3118abb08344e156d91144a046.tar.bz2 |
Fix: nm: SEGV on unknow address at nm.c:718 in print_symname
PR 30886 * elf-bfd.h (struct elf_obj_tdata): Add dt_strsz field.
* elf.c (_bfd_elf_get_dynamic_symbols): Add a NUL byte at the end of the string table. Initialise the dt_strsz field. (_bfd_elf_slurp_version_tables): Only free the contents if they were malloc'ed. Add checks before setting string pointers in the dt_strtab buffer.
Diffstat (limited to 'gdb/bt-utils.c')
0 files changed, 0 insertions, 0 deletions