mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +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;
|
continue;
|
||||||
|
|
||||||
amt = current->reloc_count * external_reloc_size;
|
amt = current->reloc_count * external_reloc_size;
|
||||||
reloc_buff = bfd_alloc (abfd, amt);
|
reloc_buff = bfd_zalloc (abfd, amt);
|
||||||
if (reloc_buff == NULL)
|
if (reloc_buff == NULL)
|
||||||
goto error_return;
|
goto error_return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user