diff options
author | Alan Modra <amodra@gmail.com> | 2022-09-28 09:22:43 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-09-28 10:26:45 +0930 |
commit | 540e53422cd8916b85d43060210251132fba8548 (patch) | |
tree | 6eb6a5d6211b6f5c83c79c87deedeb0f3fab935a /bfd | |
parent | 4f56cf059ca883ca86c8f15cfc8a3e27465bf4b0 (diff) | |
download | gdb-540e53422cd8916b85d43060210251132fba8548.zip gdb-540e53422cd8916b85d43060210251132fba8548.tar.gz gdb-540e53422cd8916b85d43060210251132fba8548.tar.bz2 |
asan: segv in _bfd_archive_close_and_cleanup
Uninitialised arelt_data->parent_cache led to this segv.
* pdb.c (pdb_get_elt_at_index): Clear arelt_data.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/pdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -193,7 +193,7 @@ pdb_get_elt_at_index (bfd *abfd, symindex sym_index) goto fail; file->arelt_data = - (struct areltdata *) bfd_malloc (sizeof (struct areltdata)); + (struct areltdata *) bfd_zmalloc (sizeof (struct areltdata)); if (!file->arelt_data) goto fail; |