From ee6cbff21381025f988457d9481d5b3b8d05bb72 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 2 Jun 2022 16:43:48 +0930 Subject: [PATCH] asan: uninit write _bfd_ecoff_write_object_contents * ecoff.c (_bfd_ecoff_write_object_contents): zalloc reloc_buff. --- bfd/ecoff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2