asan: uninit write _bfd_ecoff_write_object_contents
Alan Modra
amodra@gmail.com
Thu Jun 2 07:39:50 GMT 2022
* ecoff.c (_bfd_ecoff_write_object_contents): zalloc reloc_buff.
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index d2081055835..511d88b5339 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;
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list