mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
2007-07-23 Michael Snyder <msnyder@access-company.com>
* opncls.c (bfd_make_writable): Check return from bfd_malloc.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2007-07-24 Michael Snyder <msnyder@access-company.com>
|
2007-07-24 Michael Snyder <msnyder@access-company.com>
|
||||||
|
|
||||||
|
* opncls.c (bfd_make_writable): Check return from bfd_malloc.
|
||||||
|
|
||||||
* elflink.c (bfd_elf_final_link): Avoid redundant frees -- return
|
* elflink.c (bfd_elf_final_link): Avoid redundant frees -- return
|
||||||
on bfd_malloc error rather than goto error_return.
|
on bfd_malloc error rather than goto error_return.
|
||||||
|
|
||||||
|
@ -799,6 +799,8 @@ bfd_make_writable (bfd *abfd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bim = bfd_malloc (sizeof (struct bfd_in_memory));
|
bim = bfd_malloc (sizeof (struct bfd_in_memory));
|
||||||
|
if (bim == NULL)
|
||||||
|
return FALSE; /* bfd_error already set. */
|
||||||
abfd->iostream = bim;
|
abfd->iostream = bim;
|
||||||
/* bfd_bwrite will grow these as needed. */
|
/* bfd_bwrite will grow these as needed. */
|
||||||
bim->size = 0;
|
bim->size = 0;
|
||||||
|
Reference in New Issue
Block a user