Fix an access through a null pointer when parsing a corrupt SOM format fle.
authorNick Clifton <nickc@redhat.com>
Thu, 29 Apr 2021 16:55:43 +0000 (17:55 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 29 Apr 2021 16:55:43 +0000 (17:55 +0100)
commit09e40e44ad05822ed72f6ad720b5e75ea2a8fc67
tree5a6c2619aaeb62334cea7aaa6c7bf0b05f140c5e
parent063e75c9e4307d21b787a71b6d5b61a2560f5073
Fix an access through a null pointer when parsing a corrupt SOM format fle.

PR 27793
* som.c (som_slurp_symbol_table): Assign symbols without any scope
to the undefined section.
(som_decode_symclass): Check for a missing symbol section.
* syms.c (bfd_decode_symclass): Likewise.
bfd/ChangeLog
bfd/som.c
bfd/syms.c