2007-07-26 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 26 Jul 2007 18:53:51 +0000 (18:53 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 26 Jul 2007 18:53:51 +0000 (18:53 +0000)
* syms.c (bfd_decode_symclass): Guard against NULL, since
bfd_is_com_section dereferences the pointer.

bfd/ChangeLog
bfd/syms.c

index 45545f566807871bb65076958fd4a63147a88e87..9a2ce289c2a78244747f41868f26fd23136bc16e 100644 (file)
@@ -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).
 
index ea50944491f87b443f5a39b899a6eb9343375fdd..9d425684d9039e6997185f3948c8b526459ab205 100644 (file)
@@ -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))
     {
This page took 0.032516 seconds and 4 git commands to generate.