mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
2007-07-26 Michael Snyder <msnyder@access-company.com>
* linker.c (already_linked_newfunc): Check for NULL return from bfd_hash_allocate.
This commit is contained in:
parent
ac38308c95
commit
2d4f3e92ff
@ -1,5 +1,8 @@
|
||||
2007-07-26 Michael Snyder <msnyder@access-company.com>
|
||||
|
||||
* linker.c (already_linked_newfunc): Check for NULL return from
|
||||
bfd_hash_allocate.
|
||||
|
||||
* coffgen.c (fixup_symbol_value): Guard against null;
|
||||
bfd_is_com_section will dereference the section pointer.
|
||||
|
||||
|
@ -2948,6 +2948,9 @@ already_linked_newfunc (struct bfd_hash_entry *entry ATTRIBUTE_UNUSED,
|
||||
|
||||
ret->entry = NULL;
|
||||
|
||||
if (ret == NULL)
|
||||
return ret;
|
||||
|
||||
return &ret->root;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user