Fix a segmentation fault triggered by disassembling an EFi file with source included.
authorNick Clifton <nickc@redhat.com>
Wed, 6 Mar 2019 09:43:15 +0000 (09:43 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 6 Mar 2019 09:43:54 +0000 (09:43 +0000)
commit219d6836e939d2cd1a8c5574bfa3a101daa31cbb
treefcb558dbeef3a07afaa31f7b5ea54561d7e37e3c
parentaa3cfbda2f2af71044949b5692ce51cafb023d13
Fix a segmentation fault triggered by disassembling an EFi file with source included.

* dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
table pointer.
* coffgen.c (coff_find_nearest_line_with_names): Do not call
_bfd_dwarf2_find_symbol_bias if there is no symbol table available.

https://bugzilla.redhat.com/show_bug.cgi?id=1685727
bfd/ChangeLog
bfd/coffgen.c
bfd/dwarf2.c