Add a check for a NULL table pointer before attempting to compute a DWARF filename.
[deliverable/binutils-gdb.git] / bfd / dwarf2.c
index ca22db766c54a0ee8c35199b5110b03d9f7524d8..0f8257f6015e5eb07b114d26d7a6a74b66d57d8f 100644 (file)
@@ -1566,7 +1566,7 @@ concat_filename (struct line_info_table *table, unsigned int file)
 {
   char *filename;
 
-  if (file - 1 >= table->num_files)
+  if (table == NULL || file - 1 >= table->num_files)
     {
       /* FILE == 0 means unknown.  */
       if (file)
This page took 0.023324 seconds and 4 git commands to generate.