mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 19:46:09 +08:00
Handle out of memory situations.
This commit is contained in:
@ -672,6 +672,8 @@ bfd_get_unique_section_name (abfd, templat, count)
|
||||
|
||||
len = strlen (templat);
|
||||
sname = bfd_malloc (len + 8);
|
||||
if (sname == NULL)
|
||||
return NULL;
|
||||
strcpy (sname, templat);
|
||||
num = 1;
|
||||
if (count != NULL)
|
||||
|
Reference in New Issue
Block a user