diff options
author | Alan Modra <amodra@gmail.com> | 2023-07-13 13:32:42 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-07-13 14:27:51 +0930 |
commit | 22e90ac5af46c01ee4972cf04e835266862bbb35 (patch) | |
tree | c0dd8ba47fcfbb9c070540a8cc729a8b1fe0117f /gdb/ada-lang.c | |
parent | e726bad8af9a12dc7cbc5f148523fdf0a0b3cf5a (diff) | |
download | binutils-22e90ac5af46c01ee4972cf04e835266862bbb35.zip binutils-22e90ac5af46c01ee4972cf04e835266862bbb35.tar.gz binutils-22e90ac5af46c01ee4972cf04e835266862bbb35.tar.bz2 |
elf_object_p load of dynamic symbols
This fixes an uninitialised memory access on a fuzzed file:
0 0xf22e9b in offset_from_vma /src/binutils-gdb/bfd/elf.c:1899:2
1 0xf1e90f in _bfd_elf_get_dynamic_symbols /src/binutils-gdb/bfd/elf.c:2099:13
2 0x10e6a54 in bfd_elf32_object_p /src/binutils-gdb/bfd/elfcode.h:851:9
Hopefully it will also stop any attempt to load dynamic symbols from
eu-strip debug files.
* elfcode.h (elf_object_p): Do not attempt to load dynamic
symbols for a file with no section headers until all the
program headers are swapped in. Do not fail on eu-strip debug
files.
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions