summaryrefslogtreecommitdiff
path: root/bfd/syms.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-26 18:53:51 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-26 18:53:51 +0000
commit61cf69211448236256f9459824c762b1ced72d12 (patch)
tree7fded7863478d00df78a6a4f4430599bfdde8a6f /bfd/syms.c
parentd2a9a8b94b3979dc2c773681c53273f320b1bdc3 (diff)
downloadbinutils-redhat-61cf69211448236256f9459824c762b1ced72d12.tar.gz
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.
Diffstat (limited to 'bfd/syms.c')
-rw-r--r--bfd/syms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/syms.c b/bfd/syms.c
index ea50944491..9d425684d9 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -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))
{