mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
2007-07-26 Michael Snyder <msnyder@access-company.com>
* coffgen.c (fixup_symbol_value): Guard against null; bfd_is_com_section will dereference the section pointer.
This commit is contained in:
parent
c82a7c57df
commit
ac38308c95
@ -1,5 +1,8 @@
|
||||
2007-07-26 Michael Snyder <msnyder@access-company.com>
|
||||
|
||||
* coffgen.c (fixup_symbol_value): Guard against null;
|
||||
bfd_is_com_section will dereference the section pointer.
|
||||
|
||||
* syms.c (bfd_decode_symclass): Guard against NULL, since
|
||||
bfd_is_com_section dereferences the pointer.
|
||||
|
||||
|
@ -567,7 +567,8 @@ fixup_symbol_value (bfd *abfd,
|
||||
struct internal_syment *syment)
|
||||
{
|
||||
/* Normalize the symbol flags. */
|
||||
if (bfd_is_com_section (coff_symbol_ptr->symbol.section))
|
||||
if (coff_symbol_ptr->symbol.section
|
||||
&& bfd_is_com_section (coff_symbol_ptr->symbol.section))
|
||||
{
|
||||
/* A common symbol is undefined with a value. */
|
||||
syment->n_scnum = N_UNDEF;
|
||||
|
Loading…
Reference in New Issue
Block a user