From: Nick Clifton Date: Tue, 27 Dec 2005 16:07:36 +0000 (+0000) Subject: (lookup_symbol_in_function_table): Check for a function name before passing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=650f284e0da5017204f524d6388c88ad87f0241d;p=binutils-gdb.git (lookup_symbol_in_function_table): Check for a function name before passing it to strcmp. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 29beee703e0..b9a51dc5f9b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-12-27 Marty Leisner + + * dwarf2.c (lookup_symbol_in_function_table): Check for a function + name before passing it to strcmp. + 2005-12-27 Alan Modra * elf.c (elf_find_function): Don't ignore section syms. diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 5cfcc908e8d..123dd9c430d 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1467,6 +1467,7 @@ lookup_symbol_in_function_table (struct comp_unit *unit, if ((!each_func->sec || each_func->sec == sec) && addr >= arange->low && addr < arange->high + && each_func->name && strcmp (name, each_func->name) == 0 && (!best_fit || ((arange->high - arange->low)