2007-07-26 Michael Snyder <msnyder@access-company.com>
* syms.c (bfd_decode_symclass): Guard against NULL, since bfd_is_com_section dereferences the pointer.
This commit is contained in:
parent
3d7b34d85b
commit
c82a7c57df
@ -1,5 +1,8 @@
|
||||
2007-07-26 Michael Snyder <msnyder@access-company.com>
|
||||
|
||||
* syms.c (bfd_decode_symclass): Guard against NULL, since
|
||||
bfd_is_com_section dereferences the pointer.
|
||||
|
||||
* srec.c (srec_scan): Check for EOF (critical because return value
|
||||
will be used as array index).
|
||||
|
||||
|
@ -651,7 +651,7 @@ bfd_decode_symclass (asymbol *symbol)
|
||||
{
|
||||
char c;
|
||||
|
||||
if (bfd_is_com_section (symbol->section))
|
||||
if (symbol->section && bfd_is_com_section (symbol->section))
|
||||
return 'C';
|
||||
if (bfd_is_und_section (symbol->section))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user