2007-07-23 Michael Snyder * elf-attrs.c (_bfd_elf_merge_object_attributes): Bail out on null pointer, or loop will crash on next iteration (Coverity). Index: elf-attrs.c =================================================================== RCS file: /cvs/src/src/bfd/elf-attrs.c,v retrieving revision 1.2 diff -p -r1.2 elf-attrs.c *** elf-attrs.c 3 Jul 2007 14:26:40 -0000 1.2 --- elf-attrs.c 24 Jul 2007 01:12:04 -0000 *************** _bfd_elf_merge_object_attributes (bfd *i *** 611,616 **** --- 611,623 ---- out_list = out_list->next; if (out_list) out_attr = &out_list->attr; + else + { + _bfd_error_handler + (_("ERROR: %B: Internal symbol table inconsistancy."), + ibfd); + return FALSE; + } } /* Check the output doesn't have extra tags with this identifier. */