]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/dwarf2.c
Fix a segmentation fault triggered by disassembling an EFi file with source included.
[thirdparty/binutils-gdb.git] / bfd / dwarf2.c
index 0b4e4855821d75231d62ed80fa5dc68abb310511..56557bbc81f84d301a2225c2bd4f49ed19d386a6 100644 (file)
@@ -4472,7 +4472,7 @@ _bfd_dwarf2_find_symbol_bias (asymbol ** symbols, void ** pinfo)
 
   stash = (struct dwarf2_debug *) *pinfo;
 
-  if (stash == NULL)
+  if (stash == NULL || symbols == NULL)
     return 0;
 
   for (unit = stash->all_comp_units; unit; unit = unit->next_unit)