asan: uninit write _bfd_ecoff_write_object_contents

* ecoff.c (_bfd_ecoff_write_object_contents): zalloc reloc_buff.
This commit is contained in:
Alan Modra
2022-06-02 16:43:48 +09:30
parent f66d30a6e5
commit ee6cbff213

View File

@ -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;