diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-07-26 18:53:51 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-07-26 18:53:51 +0000 |
commit | c82a7c57dfaf9b0d9adc288d997515e04be8efb8 (patch) | |
tree | fc718cbd3a7fe76d4b4cff3fd9516f9db19b2a47 | |
parent | 3d7b34d85ba1babf7cf086dc6651bd1bfe0f99fc (diff) | |
download | gdb-c82a7c57dfaf9b0d9adc288d997515e04be8efb8.zip gdb-c82a7c57dfaf9b0d9adc288d997515e04be8efb8.tar.gz gdb-c82a7c57dfaf9b0d9adc288d997515e04be8efb8.tar.bz2 |
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.
-rw-r--r-- | bfd/ChangeLog | 3 | ||||
-rw-r--r-- | bfd/syms.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 45545f5..9a2ce28 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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)) { |