public inbox for binutils-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] asan: uninit write _bfd_ecoff_write_object_contents
@ 2022-06-02 9:06 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-06-02 9:06 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ee6cbff21381025f988457d9481d5b3b8d05bb72
commit ee6cbff21381025f988457d9481d5b3b8d05bb72
Author: Alan Modra <amodra@gmail.com>
Date: Thu Jun 2 16:43:48 2022 +0930
asan: uninit write _bfd_ecoff_write_object_contents
* ecoff.c (_bfd_ecoff_write_object_contents): zalloc reloc_buff.
Diff:
---
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-02 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-02 9:06 [binutils-gdb] asan: uninit write _bfd_ecoff_write_object_contents Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).