PR 25842
* elf.c (_bfd_elf_get_symbol_version_string): Don't segfault on
NULL nodename.
+2020-04-17 Alan Modra <amodra@gmail.com>
+
+ PR 25842
+ * elf.c (_bfd_elf_get_symbol_version_string): Don't segfault on
+ NULL nodename.
+
2020-04-16 Nick Clifton <nickc@redhat.com>
PR 25803
{
const char *nodename
= elf_tdata (abfd)->verdef[vernum - 1].vd_nodename;
- version_string = ((base_p || strcmp (symbol->name, nodename))
- ? nodename : "");
+ version_string = "";
+ if (base_p
+ || nodename == NULL
+ || symbol->name == NULL
+ || strcmp (symbol->name, nodename) != 0)
+ version_string = nodename;
}
else
{