diff options
author | Alan Modra <amodra@gmail.com> | 2021-12-17 15:41:59 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-12-17 16:54:56 +1030 |
commit | 27e3da31c31572fde3d6e244a68ea45fb874b038 (patch) | |
tree | c1da58b31e89c4c76632b537879882f47f010e56 /gdb/testsuite/lib/notty-wrap | |
parent | 7ebf6ed02bde3a488bb588316e47b4df68796076 (diff) | |
download | gdb-27e3da31c31572fde3d6e244a68ea45fb874b038.zip gdb-27e3da31c31572fde3d6e244a68ea45fb874b038.tar.gz gdb-27e3da31c31572fde3d6e244a68ea45fb874b038.tar.bz2 |
asan: NULL dereference in bfd_elf_set_group_contents
* elf-bfd.h (struct output_elf_obj_tdata): Make num_section_syms
unsigned.
* elf.c (bfd_elf_set_group_contents): Bounds check sec->index
and check that entry in elf_section_syms for sec is non-NULL.
(_bfd_elf_symbol_from_bfd_symbol): Adjust.
Diffstat (limited to 'gdb/testsuite/lib/notty-wrap')
0 files changed, 0 insertions, 0 deletions