mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
asan: uninit write _bfd_ecoff_write_object_contents
* ecoff.c (_bfd_ecoff_write_object_contents): zalloc reloc_buff.
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user