aboutsummaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-06-02 16:43:48 +0930
committerAlan Modra <amodra@gmail.com>2022-06-02 16:43:48 +0930
commitee6cbff21381025f988457d9481d5b3b8d05bb72 (patch)
tree90443c560d2ecc876bb546ed404f4d7dee1b98b2 /bfd/ecoff.c
parentf66d30a6e5b9287f9edaa93e9f04db1fd44a06ce (diff)
downloadgdb-ee6cbff21381025f988457d9481d5b3b8d05bb72.zip
gdb-ee6cbff21381025f988457d9481d5b3b8d05bb72.tar.gz
gdb-ee6cbff21381025f988457d9481d5b3b8d05bb72.tar.bz2
asan: uninit write _bfd_ecoff_write_object_contents
* ecoff.c (_bfd_ecoff_write_object_contents): zalloc reloc_buff.
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r--bfd/ecoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index d208105..511d88b 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -2632,7 +2632,7 @@ _bfd_ecoff_write_object_contents (bfd *abfd)
continue;
amt = current->reloc_count * external_reloc_size;
- reloc_buff = bfd_alloc (abfd, amt);
+ reloc_buff = bfd_zalloc (abfd, amt);
if (reloc_buff == NULL)
goto error_return;