Fix lookup_address_in_function_table segfault
Add NULL check to dwarf2.c to prevent segfault with malformed DWARF aranges.
A fuzzing tool found a segfault in the DWARF2 parser when processing malformed arange entries. Specifically, an arange with low=0 and high=(bfd_vma)-1 could cause a NULL pointer dereference. This commit adds a check for a NULL best_fit pointer before accessing its members, preventing the crash.
In Details
This commit addresses a NULL pointer dereference in bfd/dwarf2.c within lookup_address_in_function_table. The issue arises when an arange entry has low=0 and high=UINT_MAX, leading to best_fit_len equaling the initial (no match) value. The subsequent check arange->high - arange->low < best_fit_len passes, but best_fit itself is NULL, causing a crash. The fix adds a best_fit == NULL check.